Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a Flot Chart but I found out that when pass 1 or 0 for only one month and load the graph the Y axis shows some long decimal numbers. Please help.
JavaScript
var options1 =
                {
                    yaxis: { axisLabel: ""},
                    xaxis: {
                        tickLength: 1,
                        axisLabel: "Months",
                        ticks: [[1, "Jan"], [2, "Feb"], [3, "Mar"], [4, "Apr"], [5, "May"], [6, "Jun"], [7, "Jul"], [8, "Aug"], [9, "Sep"], [10, "Oct"], [11, "Nov"], [12, "Dec"]]
                    },
                    grid: {
                        hoverable: true,
                        clickable: true
                    },
                    valueLabels: {
                        show: true
                    }
                };
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900