Jump to content
JChartFX Community

Groover

Members
  • Content Count

    21
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Groover

  • Rank
    Member
  1. Problem solved! For anyone interested, The setColor function will throw an error when used on the Title object, use setTextColor instead. Ex: var chart1 = new cfx.Chart(); var panes = chart1.getPanes(); var pane0 = panes.getItem(0); pane0.getTitle().setTextColor("#222222");
  2. Hi, Is it possible to draw a curved area chart that fills the area between high/low values instead of high/zero ? Thanks!
  3. Hi, I am trying to change the text style for the title and X/Y-axis text, but nothing changes no matter what I do. How should this be done programmatically or with css? Thanks!
  4. For anyone interested, There was another referenced css file that caused problem. After removing the content below from that css file, the colors in my chart(s) are now ok. #chart .Title { font-size: 14px; font-weight: bold; } #chartToolTip { background-color: #FFFFFF; color: transparent; padding: 0px; -moz-border-radius: 0px; border-radius: 0px; pointer-events: none; border-style: solid; border-width: 0px; border-color: transparent; } #chart .Border { fill: #FCFDFD; stroke: #A6C9E2; stroke-width: 1; }
  5. I removed the reference to jchartfx.css and used this code, but it is still not working. Any more clues what could be wrong? Thanks! var chart1 = new cfx.Chart(); chart1.getAnimations().getLoad().setEnabled(true); chart1.getLegendBox().setVisible(true); chart1.getAxisX().setLabelAngle(45); var panes = chart1.getPanes(); var pane1 = new cfx.Pane(); var pane2 = new cfx.Pane(); var pane0 = panes.getItem(0); panes.add(pane1); panes.add(pane2); pane0.setProportion(2); pane0.getTitle().setText("Elapsed"); chart1.getAxisY().getTitle().setText("Mi
  6. Hmm, now the line is gray instead of green and the serie's icon in the legend box is gone, after removing the css above from the jchartfx.css and using this code instead: var series = seriesList.getItem(i); series.setPane(pane0); series.setGallery(cfx.Gallery.Curve); series.setMarkerShape(cfx.MarkerShape.None); series.setColor("#93E24E"); //Green series.getBorder().setColor("#6FAA3B"); //Dark Green series.getBorder().setWidth(6); What is being done wrong here? Thanks!
  7. Hi, I have created a combined chart using the JSON below. First I made a Curve chart, it looks incorrect and then a Line chart which looks ok. [ { "Date": " 10:00", "MY-VAIO": 4107, "COMPLETED": 42 }, { "Date": " 11:00", "MY-VAIO": 4478, "COMPLETED": 59 }, { "Date": " 12:00", "MY-VAIO": 4246, "COMPLETED": 61 }, { "Date": " 13:00", "MY-VAIO": 4074, "COMPLETED": 59 }, { "Date": " 14:00", "MY-VAIO": 4003, "COMPLETED":
  8. Lets say a serie looks like this in jchartfx.css, what would the java script code look like to achieve the same programatically? .jchartfx .Attribute0 { fill: #57ACDA; stroke: #4281A4; stroke-width: 1; } .jchartfx .Attribute0Line { stroke: #4281A4; stroke-width: 3; } .jchartfx .Attribute0Alt { fill: #4281A4; }
  9. One more obeservation, it appears that if the value cfx.Chart.Hidden is present anywhere in the series with this gallery type cfx.Gallery.Curve, then there will only be dots rendered with no curved line between them in the serie. Also dont know how to handle this. Thanks!
  10. Hi JuanC, don't know if this is correct, the series AVG,COMPLETED and ABORTED are not visible at all in the charts SAMPLE JSON [ { "Date": "2013-11-14 09:53", "AVG": "cfx.Chart.Hidden", "COMPLETED": "cfx.Chart.Hidden", "ABORTED": "cfx.Chart.Hidden", "MY-VAIO": 28 }, { "Date": "2013-11-14 09:54", "AVG": 5606, "COMPLETED": 2, "ABORTED": 0, "MY-VAIO": 67 }, { "Date": "2013-11-14 09:55", "AVG": "cfx.Chart.Hidden", "COMPLETED": "cfx.Chart.Hidden",
  11. Hi, With some help from a Groovy forum I found a way to fill in "missing" values with default values through out the json before passing it to jChartFX. The default value I am using is 0, but assuming that the missing values are 0 is actually wrong, it would be better to not show the missing values at all. Is there a value that can be used for filling in missing values so that the series will still be rendered but the missing values not? Thanks!
  12. Hi, It seem like series not present in the first time step will not be rendered at all when feeding the chart with JSON. For example, with the JSON below, only the the series MY-HOST will be present in the chart. Is there any way to to make sure all series are included and drawn in the chart, even with an unreliable JSON like this? Thanks! Sample JSON [ { "Date": "2013-11-12 19:45", "MY-HOST": 66 }, { "Date": "2013-11-12 19:46", "MY-HOST": 48 }, { "Date": "2013-11-12 19:47", "AVG": 27592, "
  13. Thanks JuanC, this is good enough to make it work.
  14. Hi, Is it possible to get series by its name instead of getItem(N)? ---------------------------------------------- var seriesList = chart1.getSeries(); var series1 = seriesList.getItem(0); //HIGH var series2 = seriesList.getItem(1); //LOW var series3 = seriesList.getItem(2); //AVG series1.setPane(pane0); series2.setPane(pane0); series3.setPane(pane0); series1.setGallery(cfx.Gallery.Scatter); series2.setGallery(cfx.Gallery.Scatter); series3.setGallery(cfx.Gallery.Curve); -------------------------------------------------------- The sequence of the properties can vary over time i
×
×
  • Create New...