User (Legacy) Posted November 26, 2002 Report Share Posted November 26, 2002 Hello, I want to produce a pie chart and attach a legend box to it. At the moment I'm passing data in by using OpenDataEx with oChart .OpenDataEx COD_VALUES, 1, 5 .ValueEx(0, 0) = 5 .ValueEx(0, 1) =15 .ValueEx(0, 2) = 24 .ValueEx(0, 3) = 36 .ValueEx(0, 4) = 20 .CloseData COD_VALUES end with Now I want to assign a label to each point so it shows in my legend box. How can I assign these labels?? Thanks in advance Filip Link to comment Share on other sites More sharing options...
Software FX Posted November 26, 2002 Report Share Posted November 26, 2002 Use the Legend property .Legend(0) = "January" .Legend(1) = "February" ... -- Regards, JC Software FX Support "Filip Kratochvil" <filipk@iname.com> wrote in message news:UDYfVyQlCHA.1060@webserver1.softwarefx.com... > Hello, > > I want to produce a pie chart and attach a legend box to it. > At the moment I'm passing data in by using OpenDataEx > > with oChart > .OpenDataEx COD_VALUES, 1, 5 > > .ValueEx(0, 0) = 5 > .ValueEx(0, 1) =15 > .ValueEx(0, 2) = 24 > .ValueEx(0, 3) = 36 > .ValueEx(0, 4) = 20 > > .CloseData COD_VALUES > end with > > Now I want to assign a label to each point so it shows in my legend box. > How can I assign these labels?? > > Thanks in advance > Filip > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 26, 2002 Author Report Share Posted November 26, 2002 Unfortunatelly that produces labels around thegraph but not the series legend. I would like the legend to display my labels, now it only shows 'Series #1' Thanks, Filip "Software FX Support" <support@softwarefx.com> wrote in message news:nCmNNfVlCHA.1060@webserver1.softwarefx.com... > Use the Legend property > > .Legend(0) = "January" > .Legend(1) = "February" > ... > > -- > Regards, > > JC > Software FX Support > "Filip Kratochvil" <filipk@iname.com> wrote in message > news:UDYfVyQlCHA.1060@webserver1.softwarefx.com... > > Hello, > > > > I want to produce a pie chart and attach a legend box to it. > > At the moment I'm passing data in by using OpenDataEx > > > > with oChart > > .OpenDataEx COD_VALUES, 1, 5 > > > > .ValueEx(0, 0) = 5 > > .ValueEx(0, 1) =15 > > .ValueEx(0, 2) = 24 > > .ValueEx(0, 3) = 36 > > .ValueEx(0, 4) = 20 > > > > .CloseData COD_VALUES > > end with > > > > Now I want to assign a label to each point so it shows in my legend box. > > How can I assign these labels?? > > > > Thanks in advance > > Filip > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted November 26, 2002 Report Share Posted November 26, 2002 Your pie chart has only one series so there is no point trying to show the series legend, try showing the Values Legend (legendbox property). -- Regards, JC Software FX Support "Filip Kratochvil" <filipk@iname.com> wrote in message news:IDcQjtYlCHA.3044@webserver1.softwarefx.com... > Unfortunatelly that produces labels around thegraph but not the series > legend. > I would like the legend to display my labels, now it only shows 'Series #1' > > Thanks, > Filip > > > "Software FX Support" <support@softwarefx.com> wrote in message > news:nCmNNfVlCHA.1060@webserver1.softwarefx.com... > > Use the Legend property > > > > .Legend(0) = "January" > > .Legend(1) = "February" > > ... > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Filip Kratochvil" <filipk@iname.com> wrote in message > > news:UDYfVyQlCHA.1060@webserver1.softwarefx.com... > > > Hello, > > > > > > I want to produce a pie chart and attach a legend box to it. > > > At the moment I'm passing data in by using OpenDataEx > > > > > > with oChart > > > .OpenDataEx COD_VALUES, 1, 5 > > > > > > .ValueEx(0, 0) = 5 > > > .ValueEx(0, 1) =15 > > > .ValueEx(0, 2) = 24 > > > .ValueEx(0, 3) = 36 > > > .ValueEx(0, 4) = 20 > > > > > > .CloseData COD_VALUES > > > end with > > > > > > Now I want to assign a label to each point so it shows in my legend box. > > > How can I assign these labels?? > > > > > > Thanks in advance > > > Filip > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.