Result doesn't show in pie chart

Hi
I am following the CUBA-Hands-on-Lab.pdf from https://www.cuba-platform.com/sites/default/files/learning_materials/CUBA-Hands-on-Lab.pdf
on the Charts chapter (start from Page 98 to 104)
I have done the same change as it described. but there is no result show in the chart.
files attached are some screen shots.

datasource

layout

mechanics

orders

xml

Hi Zhengwu,

You’ve missed two chart attributes in the component description: titleField and valueField (see the screenshot on page 103). So, your pieChart should look like this:


        <chart:pieChart id="ratingChart"
                        datasource="ratingDs"
                        titleField="mechanic"
                        valueField="count"
                        height="200px"
                        width="100%">
            <chart:legend position="LEFT"/>
        </chart:pieChart>

It works. Thank you very much.