-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Highcharts 5 styled mode #115
Comments
I was just looking for the same thing ! |
It is easy to use by changing your webpack or systemjs config. Look at this commit changes gevgeny/angular2-webpack-starter-and-angular2-highcharts@c585a6b |
We're using Angular-CLI to configure and build our project; although this uses Webpack, it doesn't expose the |
A bit more fiddling, and we found that you could alter "baseUrl": ".",
"paths": {
...,
"highcharts": ["../node_modules/highcharts/js/highcharts.js"]
} and "styles": [
...,
"../node_modules/highcharts/css/highcharts.css"
], If anyone else has the same problem (trying to use styled mode with Angular-CLI), that seems to solve it. |
I couldn't get I'm not very happy about using a hack like this, but I included the following in my "prebuild": "copy /y node_modules\\highcharts\\js\\highcharts.js node_modules\\highcharts\\" Now whenever I execute Edit: "postinstall": "copy /y node_modules\\highcharts\\js\\highcharts.js node_modules\\highcharts\\" |
is there any updates on this thread ? my project is an angular/cli based project, and the approach @textbook suggested does not work for me |
Highcharts 5, now supported by
angular2-highcharts
, has a "styled mode" where you use CSS instead of JS to style your charts. We would like to use this in a project, but it isn't currently exposed by this library. Are there any plans to add this functionality?If something like:
was available that would be great.
Having quickly looked into it, it seems that modifying the
HighchartsWrapper
torequire('highcharts/js/highcharts')
would be sufficient to enable this behaviour by default. However, as theHighchartsService
is provided directly toChartComponent
, it is difficult to inject an alternative from outside.The text was updated successfully, but these errors were encountered: