Comments (5)
Your theme path in .angular-cli.json
is wrong. For your case, you should write
"../node_modules/echarts/theme/macarons.js"
from ngx-echarts.
Thanks for your quick reply ! I tried your suggestion and it still isn't working. Please refer some other solution.
I am not sure but may be it's related with a point mentioned in documentation of Baidu. (http://echarts.baidu.com/theme-builder/)
Whenever I try to add a custom theme, it asks me to follow 3 steps.
Please refer to the 3rd step in the attached file. I am not sure if I have to use in-built themes also, like that only. I don't know where should I use the 3rd step. It's not working in my component or module.
All of your other demos are working. Only theme is not getting updated in each of them.
from ngx-echarts.
@jain13aman
You don't need to follow the steps. ngx-echarts
has done that for you.
It's obviously the theme .js
file is not correctly imported in your project. Does your project depend on other module resolvers rather than angular-cli?
My demo project is generated by angular-cli, so I only need to modify .angular-cli.json to import the theme file.
from ngx-echarts.
Thanks for your quick response. It worked for me after I restarted my project. Kinda weird because I was regularly saving all my files and my compiler was also working. May be some bug is there in visual studio code. I want to thank you for helping us out through demo !! Cheers ! I will be closing this issue now.
from ngx-echarts.
@jain13aman
Good news! As far as I know, angular-cli
will not reload .angular-cli.json file if ng serve
is working. So any changes in .angular-cli.json requires a restart.
from ngx-echarts.
Related Issues (20)
- [HELP NEEDED] "Error: yAxis "0" not found" console error for mixed line and Bar graph. HOT 1
- Can't bind to 'options' since it isn't a known property of 'div'? HOT 3
- force directed graph demo broken HOT 5
- Feature: Function wrapper for the standalone ECharts provider configuration
- heatmap not working using ngx-echarts 16.0.0, but working fine when using echart 5.4.2 directly HOT 1
- [SOLVED] I've got custom theme.js and dunno how to import it into angular app HOT 3
- 实参类型 unknown 不可分配给形参类型 ECElementEvent HOT 1
- After updating from 16.0.0 to 16.1.0 I get compilation errors using angular HOT 9
- Width and Height 100% of parent container
- 'legendselectchanged' event has no Output HOT 3
- Make the directive standalone HOT 1
- echarts/core -> Implementation of registerMap doesn't exists HOT 3
- Ngx-Echarts Animation not working Initially HOT 3
- dispatchAction not updating chart if echart directive is used in ng-template
- Most of EChartsOption and connected fields ts types are not exported HOT 2
- Use Custom Theme created Apache Echarts Theme Builder HOT 2
- Tooltip - Slow Performance
- Import a echart theme with echarts v5.5.0 and ngx-echarts v15.0.3
- Angular 17 ReferenceError: window is not defined HOT 2
- type scatterGL not recognized
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-echarts.