Richard:

There may be a path here. The R:Charts Plugin Syntax guide reports: "The following PLUGIN syntax is available to create an image of a chart, based upon an existing chart file" (emphasis mine).

So, if you've already developed the chart template for your dynamic series - where each chart ultimately generated contains the same three charting objects - each just waiting on the dynamically provided data, then maybe this sample will help; 'coz the parameter hooks for the three series are already in the .RBC file:

Give this a shot in your PLUGIN setup (stripped down for simplicity):

----------------------------------plugin vars .......
 SET VAR vrbc_result TEXT = NULL
 SET VAR vrbc_chartTile TEXT = 'richards_rack.rbc'
 SET VAR vrbc_seriesTitle_0 TEXT = 'Liesure'
 SET VAR vrbc_seriesTitle_1 TEXT = 'Sport'
 SET VAR vrbc_seriesTitle_2 TEXT = 'Dress'

------------------------------------do the do .......
 PLUGIN RCharts v11_result +
 FILENAME .vrbc_chartTitle +
 |SERIES_TITLE[0] .vrbc_seriesTitle_0 +
 |SERIES_TABLE[0] line_leisure_t +
 |SERIES_XLABELS[0] fiscal year +
 |SERIES_XVALUES[0] fyearNo +
 |SERIES YVALUES[0] totalSales +
 |SERIES COLORS[0] pointColor +
 ... +
 |SERIES_TITLE[2] .vrbc_seriesTitle_2 +
 |SERIES_TABLE[2] line_dress_t +
 |SERIES_XLABELS[2] fiscal year +
 |SERIES_XVALUES[2] fyearNo +
 |SERIES YVALUES[2] totalSales +
 |SERIES COLORS[2] pointColor +
 ...

Of course, all the other parameters could be variablized to suit your taste. The chart Legend will display your series' names.

Your question came at a great time. I was just about to bite the bullet on dynamically-defined charting, and this pushed me forward.

Thank you. Ask anytime, Bruce

Bruce A. Chitiea
SafeSectors, Inc.
1142 S Diamond Bar Blvd # 442
Diamond Bar CA 91765-2203

[email protected]
(909) 238-9012 m




------ Original Message ------
From "'R Hopkins' via RBASE-L" <[email protected]>
To "[email protected]" <[email protected]>
Date 6/5/2026 11:11:37 AM
Subject [RBASE-L] - Setting R:Chart legends

I have been playing with R:Charts on and off for several years trying to create dynamic charts that are useful to me. Hopefully there is someone who can help me solve my problem with modifying a chart's Legend. My problem is easily demonstrated using images from the R:Chart user guide. I am using R:Chart version 10.5.

An example chart from the user guide is:

Inline image
The legend values for a line chart default to Series1 and Series2 when a line chart is created. I can make the above chart and I do get the resulting default legend values (Series1, Series2).
Another example chart from the user guide is:

Inline image


The legend values have been changed from Series1, Series2 and Series3 to meaningful values of Leisure, Sport, and Dress. I have attempted to poke at every option in R:Charts, but have been unable to figure out how to make the change to the legend labels to get user defined values like Leisure, Sport and Dress for a Line Chart. And I didn’t see anything in the Plugin syntax about naming labels, which is what I really need.

Is there a R:Chart guru who has mastered how to do this? I would love to learn how!

 Richard








--
For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rbase-l/1183188011.250682.1780683097054%40mail.yahoo.com <https://groups.google.com/d/msgid/rbase-l/1183188011.250682.1780683097054%40mail.yahoo.com?utm_medium=email&utm_source=footer>.

--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/emb3ce06e3-916e-4eaa-89ed-5b13b9b9936b%40safesectors.com.

Reply via email to