我是Seaside(和Smalltalk)的新手,因为我们不得不在课堂上使用它。我正在寻找帮助尝试使用Highchart包在Seaside渲染饼图。我可以显示图表,但它显示“切片”的通用数据标签。有人知道如何跟踪如何配置图表属性吗?
renderBarChartOn: html
html div
script:
(html
highchart: [ :chart |
chart chart defaultSeriesType: 'pie'.
chart title text: 'Light On/Off'.
chart xAxis categories: #('1pm' '2pm' '3pm').
chart yAxis title text: 'Degrees Fahrenheit'.
chart
series:
(Array
with:
(chart step
data: #(80 20))) ])
让它现在正在使用:
html div
script:
(html
highchart: [ :chart |
chart chart defaultSeriesType: 'pie'.
chart title text: 'Light On/Off'.
chart series: (Array with: (chart step data: #(#('On' 80) #(#Off 20)))) ])
答案 0 :(得分:2)
html div
script:
(html
highchart: [ :chart |
chart chart defaultSeriesType: 'pie'.
chart title text: 'Light On/Off'.
chart series: (Array with: (chart step data: #(#('On' 80) #(#Off 20)))) ])