Comments (5)
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.
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.
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.
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.
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)
- Questions about copyright HOT 1
- [Bug]: multi-data & category => xAxis is dislocation HOT 1
- Update an issue template to use stackblitz for an example HOT 1
- Update all the dependencies HOT 2
- Highcharts export functionality HOT 1
- react 16.8 hooks addPlotLine not work?
- Why opposite:true doesn't work in ReactHighstock?
- Demo project doesn't work.
- outside: true on Tooltip - Error when trying to trigger the tooltip manually
- Upgrade Highcharts - Cross Site Scripting vuln HOT 3
- HighCharts events not getting triggered
- Tooltip.positioner function not working
- cannot use boost HOT 1
- Chart not resizing with container
- All Bars are starting from 0 value in Stacked bar when render happens
- npm vulnerability issue Cross-site Scripting (XSS), need to upgrade highcharts dependency
- Cannot read property 'series' of undefined
- Wrong ordering with temporal data
- Can we do reset on navigator when we switch between custom zoom buttons.
- Incorrect Date Display on Highchart ReactHighstock X-Axis.
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 react-highcharts.