highchart chart-options

Description
thomas.boll
Posts: 7
Joined: Wed Sep 02, 2015 12:34 pm

highchart chart-options

Postby thomas.boll » Thu Sep 17, 2015 6:09 am

Hi,

I use highcharts in my reports and it works fine except any chart-option.
I want to change the backgroundColor of my chart and add an border around.

Code: Select all

#highchartStart("" "column" 100 160  )
#set($highchartColors = ["D00000","F6585A","00B050","FFD800","A0A0A0"])
#addHighchartXYDataSet("Auto-Suspect" "$suspected")
#addHighchartXYDataSet("Abgelehnt" "$rejected")
#addHighchartXYDataSet("Spezifiziert" "$planed")
#addHighchartXYDataSet("In Spezifikation" "$open")
#addHighchartXYDataSet("Angelegt" "$created")
#addHighchartAdditionalOptions("options.plotOptions = {column:{stacking:'normal', groupPadding:0.0, animation:false}};")
#addHighchartAdditionalOptions("options.xAxis={gridLineWidth:0};")
#addHighchartAdditionalOptions("options.xAxis.labels={enabled: false};")
#addHighchartAdditionalOptions("options.xAxis.title={text: ''};")
#addHighchartAdditionalOptions("options.yAxis={max: $all, endOnTick: false, gridLineWidth:0};")
#addHighchartAdditionalOptions("options.yAxis.labels={enabled: false};")
#addHighchartAdditionalOptions("options.yAxis.title={text: ''};")
#addHighchartAdditionalOptions("options.legend={enabled: false};")
#addHighchartAdditionalOptions("options.tooltip={pointFormat: '{series.name}:<br/><b>{point.y}</b><br/>Gesamt:<br/><b>{point.stackTotal}</b>'};")
#addHighchartAdditionalOptions("options.chart={backgroundColor: '#FFCCFF', borderWidth: 3};")
#highchartEnd()

As soon as I activate the ...options.chart... the chart will not be shown any more.

Hope someone can help me.
Thomas Boll

martins
Posts: 181
Joined: Thu Nov 05, 2009 3:24 pm

Re: highchart chart-options

Postby martins » Fri Sep 18, 2015 8:35 am

Hello Thomas,

Code: Select all

#addHighchartAdditionalOptions("options.chart.backgroundColor='#FFCCFF';")
#addHighchartAdditionalOptions("options.chart.borderWidth=3};")
should work.

Kind regards

Martin


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 8 guests