質問

I'm new to Seaside (and Smalltalk) as we are having to use this for a class. I'm looking for help trying to render a pie chart in Seaside using the Highchart package. I can get the chart to show up but it displays generic data labels of "slice". Does anybody know how to trace how to configure the charts properties?

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))) ])

Have it working now with this:

    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)))) ])
役に立ちましたか?

解決

  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)))) ])
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top