Giter VIP home page Giter VIP logo

Comments (5)

kirjs avatar kirjs commented on July 19, 2024 2

Hi michaeljones,

You should be able to access Highcharts object as Highcharts.Highcharts.
e.g. Highcharts.Highcharts.getOptions().colors.

Please let me know if this works for you.

from react-highcharts.

Kureev avatar Kureev commented on July 19, 2024

Highcharts in this bundle is a React.Component, so it's not possible to access colors the way you specified above. But it could be an improvement for the future: expose highcharts static methods

from react-highcharts.

michaeljones avatar michaeljones commented on July 19, 2024

Thanks for the response. I think it would be useful. Again my understanding of javascript modules is not that best but I'd be concerned that trying to include Highcharts in another way might result in having it twice which would impact the file size. (I'm using browserify.)

This might tie in to issue #4, I guess. Not sure.

from react-highcharts.

Kureev avatar Kureev commented on July 19, 2024

I'll try to take a look into it, otherwise @kirjs will fix it in a few weeks. Hope I'll be faster.

from react-highcharts.

michaeljones avatar michaeljones commented on July 19, 2024

Hi @kirjs,

Thanks for the response and thank you @Kureev. I did try your approach @kirjs and it didn't seem to work but I've just realised I was still on 0.0.7. If I update to the latest on npm then it works.

Sorry for the trouble, I should know better than to fail to check for newer versions.

It might be worth documenting the availability of Highcharts.Highcharts if it isn't covered already. I can't see reference to it.

Cheers,
Michael

from react-highcharts.

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.