Git Product home page Git Product logo

Comments (5)

xieziyu avatar xieziyu commented on May 23, 2024

Your theme path in .angular-cli.json is wrong. For your case, you should write

"../node_modules/echarts/theme/macarons.js"

from ngx-echarts.

jain13aman avatar jain13aman commented on May 23, 2024

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.
rough4 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.

xieziyu avatar xieziyu commented on May 23, 2024

@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.

jain13aman avatar jain13aman commented on May 23, 2024

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.

xieziyu avatar xieziyu commented on May 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.