1
chart_optionsでhighchartsオプション "chart"を使用すると、表示されるグラフに異なる結果が表示されます。例1では、字幕は表示されますが、背景色は表示されません。例2では、背景色は表示されますが、字幕は表示されません。他の誰かがこの現象に遭遇しましたか?django-chartit highchartsオプションオブジェクト "chart"がサブタイトルを表示しない
のPython v2.7.5
ジャンゴV1.10
ジャンゴ - chartit v0.2.7
ジャンゴ・highchartsのv0.1.7
Example 1: displays subtitle, not backgroundColor
#Create the PivotChart object
site_prod_pivotcht = PivotChart(
datasource = site_prod_ds,
series_options = [
{'options':{
'type': 'column',
'stacking': False},
'terms': [
'prod_value',
'wx_adj_value']}
],
chart_options =
{'title': {
'text': 'Actual versus Wx Adjusted Production Data'},
'subtitle': {
'text': report_range},
'backgroundColor': '#7FFFD4',
'xAxis': {
'title': {
'text': 'Group:Sites'}}
}
Example 2: displays backgroundColor, not subtitle
#Create the PivotChart object
site_prod_pivotcht = PivotChart(
datasource = site_prod_ds,
series_options = [
{'options':{
'type': 'column',
'stacking': False},
'terms': [
'prod_value',
'wx_adj_value']}
],
chart_options =
{'chart':{
'title': {
'text': 'Actual versus Wx Adjusted Production Data'},
'subtitle': {
'text': report_range},
'backgroundColor': '#7FFFD4',
'xAxis': {
'title': {
'text': 'Group:Sites'}}}
}