i have data for flot pie chart in h:m format.
normally if i give data in the following format it shows pie chart properly
var data = [
{label: "data1", data:10},
{label: "data2", data: 20},
];
but if instead of int/double i directly give data with hh:mm format i dont get anything
var data = [
{label: "data1", data:10:30},
{label: "data2", data: 20:20},
];
my question is without converting h:m to a plain int/double value is there any other way to show h:m in my flot pie chart?
if no then which conversion would be better for this?
10:30isn't a valid value... you can't use:in that way. Just a guess, but what if you try a string:"10:30"- musefannew Date(2000, 0, 0, 10, 30).. I would guess it's going to need a decimal though if you want percentages - musefan