Jump to content
JChartFX Community

vaughndumas@gmail.com

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by vaughndumas@gmail.com

  1. Hi,

    I have a problem getting the Pie charts to work. Instead of having all the data in a single chart, I'm getting 3 different charts. Here's my code:



      

    
    

    var chart1;

    function loadChart() {
        chart1 = new cfx.Chart();
        var data = [{
            "a": 5,
            "b": 6,
            "c": 4
        }];
        chart1.setDataSource(data);
        chart1.setGallery(cfx.Gallery.Pie);
        chart1.create('ChartDiv');
    }

    If you have any ideas as to how to fix this or can point me in the right direction I'd appreciate it.

    Take care,

    Vaughn

    post-2107-13939743238589_thumb.jpeg

×
×
  • Create New...