1
chart_options의 highcharts 옵션 "chart"를 사용하면 표시된 차트에 다른 결과가 나타납니다. 예제 1은 배경색이 아닌 자막을 표시합니다. 예 2는 배경색을 표시하지만 자막은 표시하지 않습니다. 다른 사람이이 문제가 발생 했습니까?django-chartit highcharts 옵션 개체 "chart"가 자막을 표시하지 않습니다.
파이썬 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'}}}
}