I have a query regarding the group functionality dhmlx chart offers.
group by + sum works fine when data is to be shown for column data of type int.
However, i have to group column B, column C (both string) data based on column A. Do we have something similar to group by “count” functionlity available.
timeInQueue:["#data10#",“count”] instead timeInQueue:["#data10#",“sum”] will work ?
Regarding this “I need to get the count of column 8 (field type is string) data grouped by column 7 which is also of type string” - possibly the following can be used:
Can anyone help me this “stupid” problem?
I just tested dhtmlxChart sample code. With either dhtmlxSuit or dhtmlxChart, I couldn’t get the expected pie chart.
My code:
Pie chart with Automatic radius and center position
You are trying to load datasouorce from dhx online samples. Please, use your local file from the next path: j.scripts/dhtmlxChart/samples/common/testdata.js
Hi Darya, thanks for your reply.
Following your instruction, I still couldn’t get through. I even defined the data in script, but not lucky. see the attached picture. the charts were not drawn.
i wonder if it is related to my web server settings.
There is the same issue as in the beginning of this topic - incorrect JS object as chart configuration. You put semicolon ( after the last property in both objects.
You should use shadow: 0 instead of shadow: 0;
and y: 120 instead of y: 120;
Also there is no need to include excanvas.js library in your page. Chart library will do it automatically. All you need to put thirdparty folder into the same folder as dhtmlxchart.js, like in dhtmlxChart package