score:0

I tried to modify your code:

nv.addGraph(function () {
   chart = nv.models.cumulativeLineChart()
                  .x(function (d) { return d.x })
                  .y(function (d) { return d.y / 100 })
                  .color(d3.scale.category10().range());


    chart.xAxis
        .tickFormat(function (d) {
            return d3.time.format('%x')(new Date(d))
        });

    chart.yAxis
        .tickFormat(d3.format(',.1%'));

    d3.select('#chart svg')
        .datum(json)
        .call(chart);

    nv.utils.windowResize(chart.update);

    return chart;
});

I imported these libraries: d3.v3.min.js, nv.d3.js, nv.d3.css.

A working fiddle here http://jsfiddle.net/umxt1tx3

Is that what you looking for?


Related Query

More Query from same tag