Jump to content
JChartFX Community

Search the Community

Showing results for tags 'color'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • jChartFX
    • General Questions
    • jQuery/jQuery UI
    • Styling and Aesthetics


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 4 results

  1. 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); }
  2. Hi, I am a JChartFX licence user. I am plotting chart with color section. I am not getting correct color section as per my provided color code sectionWarning = new cfx.AxisSection(); sectionWarning.setFrom(currAlertCriticalNo); Chart1.getAxisY().getSections().add(sectionWarning); sectionWarning.setBackColor("#ffdb99"); sectionWarning.getGrids().getMajor().setVisible(false); sectionWarning.getGrids().getMinor().setVisible(false); sectionWarning.getGrids().getMinor().setTickMark(cfx.TickMark.None); sectionWarning.getGrids().getMajor().setTickMark(cfx.TickMark.None); sectionWarning.setTextColor("#ffdb99"); sectionWarning.setText(ruleBuilderWarningList[warningIndex].alertName + $("#widgetAlertWarning").text()); var customWarning; customWarning = new cfx.CustomGridLine(); customWarning.setValue(ruleBuilderWarningList[warningIndex].alertWarningNo); customWarning.setText(ruleBuilderWarningList[warningIndex].alertName + $("#widgetAlertWarning").text()); Chart1.getAxisY().getCustomGridLines().add(customWarning);
  3. Hello, I have two short questions which might be easy to solve but I got some struggle with it: (1) I want to change the color of a line chart with three lines. The first line should be red: chart.getSeries().getItem(0).setColor("#ff0000"); This _ALMOST_ works, however, the line color is not red, it is 192-0-0 (its a bit two dark for real red). What am I doing wrong? I tried setTemplate("LineBasic") on the gallery attributes (2) How can I set the background of a "chart area" to a "unicolor background color" white (no gradient). Furthermore I want to take influence on the border and the "round corners". I dont want to use any motifs though. I dont include any .css of you, for sure they have a good quality, but I need to set it programmatically.
  4. 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!
  • Create New...