(I also have jQuery 1.11 included, but I'm not using the jQuery style of jchartfx creation -- not sure if jchartfx is compatible with 1.11).
And my html tag which has its ID stored in a variable in my js code,
<div id='mychartid'></div>
... inside of my +function($){}(jQuery); IIFE:
var chart1 = new cfx.Chart();
var data = [
{ "Month": "Jan", "Bikes": 1800 },
{ "Month": "Feb", "Bikes": 1760 }
];
chart1.setDataSource(data);
chart1.setGallery(cfx.Gallery.Pie);
var titles = chart1.getTitles();
var title = new cfx.TitleDockable();
title.setText(bunetInfographic.listName);
titles.add(title);
chart1.getAllSeries().getPointLabels().setVisible(true);
chart1.create(document.getElementById(chartID));
When the page loads, nothing displays. I can look at the source and see the following in my div,
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.
Question
sferrell
I'm just trying to get a simple example to work,
I included,
jchartfx.system.js
jchartfx.coreVector.js
jchartfx.attributes.css
jchartfx.palette.css
(I also have jQuery 1.11 included, but I'm not using the jQuery style of jchartfx creation -- not sure if jchartfx is compatible with 1.11).
And my html tag which has its ID stored in a variable in my js code,
<div id='mychartid'></div>
When the page loads, nothing displays. I can look at the source and see the following in my div,
Edited by sferrell
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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.