[SOLVED] Has anyone ever changed the series color of a chart dynamically....
I have a line (JSCHART) chart with many many lines, each representing a 24hr period of the date range selected. It reminds me of like Widows Performance Monitor.
Just like performance monitor, I'd like to click on a series and turn the color to black so that I can see it among the many colored lines.
Anyone done anything like that?
I was thinking I could have the chart drill down to itself, pass the series id and change the color in the style sheet. Currently the series colors are automatically assigned so I'll probably have to take control of that.
I'll probably also want to capture the current color of the selected series so I can restore it when they click on another line.This message has been edited. Last edited by: FP Mod Chuck,
-DEFAULTH &COUNTRY='_FOC_NULL'; GRAPH FILE CAR HEADING SUM CAR.BODY.DEALER_COST BY COUNTRY NOPRINT ON GRAPH SET LOOKGRAPH HBAR ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB ON ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET STYLE * DEFMACRO=COND0001,COLUMN=N2,MACTYPE=RULE,WHEN=COUNTRY EQ '&COUNTRY',$ DEFMACRO=COND0002,COLUMN=N2,MACTYPE=RULE,WHEN=COUNTRY NE '&COUNTRY',$ TYPE=DATA,COLOR=RGB(194 11 11),MACRO=COND0001,$ TYPE=DATA,COLOR=RGB(11 11 194),MACRO=COND0002,$ $ TYPE=DATA, COLUMN=N2, FOCEXEC=jeffrey999( \ COUNTRY=N1 \ ), TARGET='_self', $ ENDSTYLE END
WebFOCUS 7.6 Windows, All Outputs
July 05, 2017, 12:19 PM
Doug
Can you use "seriescolor(#)=&Color1" Or something like that? Or, do you want the series colors to be always consistent throughout?