User (Legacy) Posted February 11, 2002 Report Share Posted February 11, 2002 I have created a 3D pie, however it does not render properly when less than 3 values are entered via code. Eg: 1 Value, no Pie is displayed int iVal = 20; this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); this.chart.Value[0,0] = iVal; this.chart.Value[0,1] = 0; this.chart.Value[0,2] = 0; this.chart.Value[0,3] = 0; this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) Eg: 2 Values, one sector of the pie is rendered int iVal = 20; this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); this.chart.Value[0,0] = iVal; this.chart.Value[0,1] = iVal; this.chart.Value[0,2] = 0; this.chart.Value[0,3] = 0; this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) Eg: 3 Values or more, the pie is rendered properly int iVal = 20; this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); this.chart.Value[0,0] = iVal; this.chart.Value[0,1] = iVal; this.chart.Value[0,2] = iVal; this.chart.Value[0,3] = 0; this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) All of these examples render properly using the 2D version. Hope you can help, Ed. Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 11, 2002 Author Report Share Posted February 11, 2002 I have created a 3D pie, however it does not render properly when less than 3 values are entered via code. Eg: 1 Value, no Pie is displayed int iVal = 20; this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); this.chart.Value[0,0] = iVal; this.chart.Value[0,1] = 0; this.chart.Value[0,2] = 0; this.chart.Value[0,3] = 0; this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) Eg: 2 Values, one sector of the pie is rendered int iVal = 20; this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); this.chart.Value[0,0] = iVal; this.chart.Value[0,1] = iVal; this.chart.Value[0,2] = 0; this.chart.Value[0,3] = 0; this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) Eg: 3 Values or more, the pie is rendered properly int iVal = 20; this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); this.chart.Value[0,0] = iVal; this.chart.Value[0,1] = iVal; this.chart.Value[0,2] = iVal; this.chart.Value[0,3] = 0; this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) All of these examples render properly using the 2D version. Hope you can help, Ed. Link to comment Share on other sites More sharing options...
Software FX Posted February 11, 2002 Report Share Posted February 11, 2002 I tested your code using build 768 and it worked fine, both adding the code to the form_Load event or to a button. Can you please download the new build and retest your app. -- Regards JC Software FX Support "Ed Blackman" <edblackman@spamkiller.dipolar.com.au> wrote in message news:w1H4rgssBHA.1412@webserver1.softwarefx.com... > I have created a 3D pie, however it does not render properly when less than > 3 values are entered via code. > > Eg: 1 Value, no Pie is displayed > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = 0; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > > Eg: 2 Values, one sector of the pie is rendered > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > Eg: 3 Values or more, the pie is rendered properly > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = iVal; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > All of these examples render properly using the 2D version. > > Hope you can help, > > Ed. > > Link to comment Share on other sites More sharing options...
Software FX Posted February 11, 2002 Report Share Posted February 11, 2002 I tested your code using build 768 and it worked fine, both adding the code to the form_Load event or to a button. Can you please download the new build and retest your app. -- Regards JC Software FX Support "Ed Blackman" <edblackman@spamkiller.dipolar.com.au> wrote in message news:w1H4rgssBHA.1412@webserver1.softwarefx.com... > I have created a 3D pie, however it does not render properly when less than > 3 values are entered via code. > > Eg: 1 Value, no Pie is displayed > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = 0; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > > Eg: 2 Values, one sector of the pie is rendered > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > Eg: 3 Values or more, the pie is rendered properly > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = iVal; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > All of these examples render properly using the 2D version. > > Hope you can help, > > Ed. > > Link to comment Share on other sites More sharing options...
Software FX Posted February 11, 2002 Report Share Posted February 11, 2002 Sorry for my previous incomplete post, I was able to reproduce your problem using the latest build when only 1 value is supplied. We will upload a new build soon with a fix for this issue. -- Regards JC Software FX Support "Ed Blackman" <edblackman@spamkiller.dipolar.com.au> wrote in message news:w1H4rgssBHA.1412@webserver1.softwarefx.com... > I have created a 3D pie, however it does not render properly when less than > 3 values are entered via code. > > Eg: 1 Value, no Pie is displayed > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = 0; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > > Eg: 2 Values, one sector of the pie is rendered > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > Eg: 3 Values or more, the pie is rendered properly > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = iVal; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > All of these examples render properly using the 2D version. > > Hope you can help, > > Ed. > > Link to comment Share on other sites More sharing options...
Software FX Posted February 11, 2002 Report Share Posted February 11, 2002 Sorry for my previous incomplete post, I was able to reproduce your problem using the latest build when only 1 value is supplied. We will upload a new build soon with a fix for this issue. -- Regards JC Software FX Support "Ed Blackman" <edblackman@spamkiller.dipolar.com.au> wrote in message news:w1H4rgssBHA.1412@webserver1.softwarefx.com... > I have created a 3D pie, however it does not render properly when less than > 3 values are entered via code. > > Eg: 1 Value, no Pie is displayed > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = 0; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > > Eg: 2 Values, one sector of the pie is rendered > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = 0; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > Eg: 3 Values or more, the pie is rendered properly > > int iVal = 20; > this.chart.OpenData( SoftwareFX.ChartFX.Lite.COD.Values,1,4); > this.chart.Value[0,0] = iVal; > this.chart.Value[0,1] = iVal; > this.chart.Value[0,2] = iVal; > this.chart.Value[0,3] = 0; > this.chart.CloseData(SoftwareFX.ChartFX.Lite.COD.Values) > > All of these examples render properly using the 2D version. > > Hope you can help, > > Ed. > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.