pattern-fill icon indicating copy to clipboard operation
pattern-fill copied to clipboard

Series color in pattern

Open sinnbeck opened this issue 8 years ago • 2 comments

Sorry if this is not an actual issue. I am trying to get the plugin to use an object to define by pattern as I need to be able to set the color for each series individually. If I look at the version 1 example it seems that the old version can take an object color overrides does not seem to work. My guess would be to set it up something like this. http://jsfiddle.net/jzy1unsv/212/

sinnbeck avatar May 01 '17 07:05 sinnbeck

You can't access the series object within the pattern definition. The closest you get I think is to predefined the color scheme, then define the patterns after that: http://jsfiddle.net/jzy1unsv/213/

TorsteinHonsi avatar May 05 '17 07:05 TorsteinHonsi

Made a few adjustments and it now works as I was hoping. People can merge this with the original plugin if they want the same functionality. :) http://jsfiddle.net/jzy1unsv/215/

sinnbeck avatar May 05 '17 09:05 sinnbeck