Delphi, cxGrid as Pie chart -


i have port delphi6 application xe3. under xe3 don't have advchart components. because want use cxgrid in future, need help, how create simple piechart these component. have dataset "name" , "value" fields (they % values).

the existing demos complex.

could explain steps how create cxgrid contains piechart these percentage values, , names in legend (+ colorizing)?

just how start it, because i'm totally confused produce beginning..

thank help, documentation, information.

i'd assume question overly broad , vote close, nevertheless short example how done programmatically, explaning usual way using ide won't fit here.

var  view:tcxgriddbchartview;  level:tcxgridlevel;  series:tcxgriddbchartseries; begin    view := cxgrid1.createview(tcxgriddbchartview) tcxgriddbchartview;   view.name := 'mychart';   level:=cxgrid1.levels.add;   level.gridview := view;   view.datacontroller.datasource := thedatasource;   view.diagrampie.active := true;   series :=view.createseries;   view.series[0].databinding.fieldname := 'value';   view.diagrampie.values.captionposition := pdvcpcenter;   view.diagrampie.values.percentagecaptionformat := '0.0%';   view.diagrampie.values.captionitems := [pdvcicategory,pdvcivalue,pdvcipercentage] end; 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -