Siddanna Agrwal
Siddanna Agrwal

Reputation: 63

ChartJS is not rendered

I am Web Forms developer and not really good with JavaScript

Now I need to add charts in my project, and my customer chose these ChartJS

Yes, they look extremely good, their demo is quite beautiful and shows lots of useful features, but the code just does not work for me!

Based on code snippets on their site, I have created a div:

<div id="chartContainer"/>

Then I copied code from their demo center:

$("#chartContainer").dxChart({
    dataSource: [
        {day: "Monday", oranges: 3},
        {day: "Tuesday", oranges: 2},
        {day: "Wednesday", oranges: 3},
        {day: "Thursday", oranges: 4},
        {day: "Friday", oranges: 6},
        {day: "Saturday", oranges: 11},
        {day: "Sunday", oranges: 4} ],

    series: {
        argumentField: "day",
        valueField: "oranges",
        name: "My oranges",
        type: "bar",
        color: "orange"
    }
});

No result. Tried to search here, but found only mentions of some another ChartJS... I think it is not ChartJS what I use...

Can anyone please help me to make it working?

Upvotes: 4

Views: 2642

Answers (1)

mrak
mrak

Reputation: 2906

Just go to ChartJS and hit the big orange download-button. The zip contains code exampels you need. The exampels on the ChartJS page have only the parts significant for demontration.

Upvotes: 4

Related Questions