Jump to content
JChartFX Community
  • 0

Stop the 'sample' data?



4 answers to this question

Recommended Posts

  • 0

Sure, this example built up using the 'Getting Started' guide seems to exhibit the same behaviour:


    <link rel="stylesheet" type="text/css" href="styles/chartfx.css" />

    <script type="text/javascript" src="js/jchartfx.system.js"></script>

    <script type="text/javascript" src="js/jchartfx.coreVector.js"></script>

<script type="text/javascript" language="javascript">

var chart1;

function loadChart()


 chart1 = new cfx.Chart();




 var series1 = chart1.getSeries().getItem(0);

 var series2 = chart1.getSeries().getItem(1);



 var divHolder = document.getElementById('ChartDiv');


var data = [

{ "Month": "Jan", "Bikes": 1800, "Parts": 1300 },

{ "Month": "Feb", "Bikes": 1760, "Parts": 900 },

{ "Month": "Mar", "Bikes": 1740, "Parts": 970 },

{ "Month": "Apr", "Bikes": 1750, "Parts": 1010},

{ "Month": "May", "Bikes": 1810, "Parts": 1070 },

{ "Month": "Jun", "Bikes": 1920, "Parts": 1180 }






<body onload="loadChart()">

<div id="ChartDiv" style="width:600px;height:400px;display:inline-block"></div>



It does load the data correctly, but just before it does, it displays some random-looking data with two generic series (Series 1 & Series 2). I've got some screenshots that I quickly grabbed as it was loading if you want me to send them somewhere. 

Every time I reload the page, the 'random' data is different.

This is using IE9, Chrome and Firefox. I'm using jChartFX version 7.1.5044.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...