tags:

views:

66

answers:

0

hello friens I am using Dojo controls

<script type="text/javascript">
dojo.require("dojox.charting.Chart2D");
dojo.require("dijit.form.NumberSpinner");

var chart1;

// The data to use.
var seriesData = [1, 2, 3,4, 5, 6, 7, 8];
dojo.addOnLoad(function() {
    chart1 = new dojox.charting.Chart2D("Div1");
    chart1.addAxis("y", { vertical: true });
    chart1.addAxis("x");
    chart1.addPlot("default", {
        hAxis: "x",
        vAxis: "y",
        type: "Columns",
        areas: true,
        gap: 5
    });
    chart1.addSeries("Series 1", [1, 2, 3, 4, 5, 6, 7, 8]);
    chart1.render();
});

</script>
<div id="Div1" style="width: 350px; height: 350px;"></div>

I have this code I need to assign text field to x-axis and y-axis instead of numbers can any one tell me how to do this?

Thanks