Rally with a black background

I see a couple of questions, for example: Standard Report rally charts with a black background , where people want to change the background color of the charts. Has anyone understood how to set up a theme for rendering high charts? Ideally, I would like to make such a schedule: http://www.highcharts.com/demo/area-inverted/gray .

I am using java script with 2.0rc1 interface.

+4
source share
1 answer

I found this while trying to solve a similar problem: Rally chart documentation

If you use the updateBeforeRender parameter, you can refer to Highcharts, in particular to the method:

Highcharts.setOptions(); 

that you need to use something like a gray theme.

Here's what my chart configurator looks like:

 App.down('#chartContain').add({ xtype: 'rallychart', updateBeforeRender: function() { Highcharts.theme = {...} Highcharts.setOptions(Highcharts.theme); } ... } 

Copy the theme code from the Highcharts documentation, and you should be good to go!

+2
source

Source: https://habr.com/ru/post/1499181/


All Articles