Using Highcharts.setOptions to get global chart options

356 views
Skip to first unread message

Christopher Brauckmuller

unread,
Apr 24, 2015, 2:08:58 PM4/24/15
to highch...@googlegroups.com
I have a series of charts on the same page which share about 80-85% of the same styling. Normally I would use Highcharts.setOptions to define a generic style which can then be overwritten as needed for the individual charts. How can I go about doing this within the context of my Angular controller?

John Yee

unread,
Apr 24, 2015, 2:24:44 PM4/24/15
to highch...@googlegroups.com
A possible solution:

Use setOptions to define the generic style, like you suggest.
Create CSS classes for the style variations and use ng-class to apply them.

Barry Fitzgerald

unread,
Apr 25, 2015, 4:22:37 PM4/25/15
to Christopher Brauckmuller, highch...@googlegroups.com
You should be able to continue what you do normally - Just use Highcharts.setOptions at the start of your controller.


On Friday, 24 April 2015, Christopher Brauckmuller <cbrauc...@gmail.com> wrote:
I have a series of charts on the same page which share about 80-85% of the same styling. Normally I would use Highcharts.setOptions to define a generic style which can then be overwritten as needed for the individual charts. How can I go about doing this within the context of my Angular controller?

--
You received this message because you are subscribed to the Google Groups "highcharts-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highcharts-n...@googlegroups.com.
To post to this group, send email to highch...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/highcharts-ng/071334e1-1658-4de8-a004-f0808cec6390%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher Brauckmuller

unread,
Apr 29, 2015, 10:49:04 AM4/29/15
to highch...@googlegroups.com, cbrauc...@gmail.com
This worked, thanks!


On Saturday, April 25, 2015 at 4:22:37 PM UTC-4, Barry Fitzgerald wrote:
You should be able to continue what you do normally - Just use Highcharts.setOptions at the start of your controller.

On Friday, 24 April 2015, Christopher Brauckmuller <cbrauc...@gmail.com> wrote:
I have a series of charts on the same page which share about 80-85% of the same styling. Normally I would use Highcharts.setOptions to define a generic style which can then be overwritten as needed for the individual charts. How can I go about doing this within the context of my Angular controller?

--
You received this message because you are subscribed to the Google Groups "highcharts-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highcharts-ng+unsubscribe@googlegroups.com.

Amanda D Innis

unread,
Jun 13, 2018, 11:12:31 AM6/13/18
to highcharts-ng
how do you use set options with highcharts in angular5?  
Reply all
Reply to author
Forward
0 new messages