jqplot

Customize primefaces chart

…衆ロ難τιáo~ 提交于 2019-11-26 14:39:19
问题 I using of primefaces's chart on my project. I know be primefaces's chart use of jqplot . on jqplot's site exist example of customizing jqplot chart. how to use of example codes for customizing primefaces chart ? sample code for customizing jqplot chart is following : $(document).ready(function () { $.jqplot._noToImageButton = true; var plot1 = $.jqplot("chart1", [prevYear, currYear], { seriesColors: ["rgba(78, 135, 194, 0.7)", "rgb(211, 235, 59)"], title: 'Monthly TurnKey Revenue',

jqPlot DateAxis tickInterval not working

夙愿已清 提交于 2019-11-26 14:29:22
问题 I'm trying to draw a chart with a single datapoint each month. I'm sending this through to jqPlot as a single point on the first of each month: $.jqplot('actualChart', [[['2011-10-01',0.296],['2011-11-01',0.682]]], { title: programSelection.options[programSelection.selectedIndex].text, axes: { xaxis: { renderer: $.jqplot.DateAxisRenderer, rendererOptions: { tickRenderer: $.jqplot.CanvasAxisTickRenderer }, tickOptions: { formatString: '%b' } } } } I'm loading the chart data using Ajax. Some