Search the Community
Showing results for tags 'Series'.
-
Hi, I'm unable to set the color of series using the API when JChartFX's stylesheets are included. Simple example: if I modify the presenter.js of the example "JS_Lines_and_Stripes_Charts.zip" by adding calls to the setColor method of both series and series border (see below), the palette defaults override my API calls (so nothing happens) until I comment out the line <link rel="stylesheet" type="text/css" href="http://www.jchartfx.com/libs/v7/current/styles/jchartfx.css"/> from index.html. After the removal the API calls work ok. The same behavior is seen in our app where JChartFX is embedded in. What am I doing wrong? function LineChartWithMarkers(chart1) { // test chart series color setting chart1.getSeries().getItem(0).setColor("#000000"); chart1.getSeries().getItem(0).getBorder().setColor("#000000"); chart1.getSeries().getItem(1).setColor("#BB0000"); chart1.getSeries().getItem(1).getBorder().setColor("#BB0000"); chart1.getSeries().getItem(2).setColor("#00CC00"); chart1.getSeries().getItem(2).getBorder().setColor("#00CC00"); // RELEVANT CODE chart1.setGallery(cfx.Gallery.Lines); // END RELEVANT CODE PopulateCarProduction(chart1); var titles = chart1.getTitles(); var title = new cfx.TitleDockable(); title.setText("Vehicles Production by Month"); titles.add(title); }
-
In earlier versions of jChart, we were using the API to set a series color. This was working so long as the series was not in the CSS file. In Version 7.4, we are noticing the API is not working at all, and the series are all white after trying to change them with the API. Can you help us understand what changed, if the API is still supported, or if this is a bug that was already fixed in a later release? Thanks in advance for the help!
-
Hi, I believe I have found a bug when using the function "bringtofront" (or "sendtoback") regarding how the series items are displayed in the LegendBox. If you look at the two examples attached you will find that the first (jChartFX - Issue with broken legend A.html) correctly shows the series in the chart, in the tooltip and in the LegendBox. The second example (jChartFX - Issue with broken legend B.html) adds the "bringToFront" code and puts the desired line chart on top of the bar chart. The LegendBox now shows the incorrect color and marker style; the chart itself, and the tooltip keep the original colors and marker styles. Can you please assist and confirm this is an issue, or if there is a workaround we could do so that the LegendBox displays the items correctly? Thank you, Chris jChartFX - Issue with broken legend A.html jChartFX - Issue with broken legend B.html
- 2 replies
-
- brinttofront
- legendbox
-
(and 4 more)
Tagged with: