jqplot

How to add a vertical line in a horizontal bar chart using primefaces + jqplot

好久不见. 提交于 2019-12-24 07:48:15
问题 I'm using primefaces + jqplot to create a Horizontal and Stacked bar chart: Code ( Example - Primefaces ): http://www.primefaces.org/showcase/ui/chart/bar.xhtml I need to add a line in chart like this image: ( Red line in Vertical ) http://peltiertech.com/Excel/pix1/AddLine.gif Can i do this with Primefaces + Jqplot ? If it's possible, someone can help me to understand ? 回答1: Finally solved my problem: 1 - Add a extender in Managed Bean with name of extender: horizontalBarModel.setExtender(

Date format jqplot categoryaxisrenderer after ticks add

只谈情不闲聊 提交于 2019-12-24 04:21:50
问题 I use jQplot with primeFaces. I would like a date formatter for the CategoryAxis (dates are in millis). I found different solutions on Stack but the problem seems to be my ticks : they are adds "after" the creation and options/format are not taking into consideration. ticks: this.cfg.categories, I tested with datetickformatter, a custom datetickformatter, CanvasAxisTickRenderer, and edition of CanvasAxisTickRenderer. In vain. this.cfg.axes = { xaxis: { renderer: $.jqplot.CategoryAxisRenderer,

Date format jqplot categoryaxisrenderer after ticks add

独自空忆成欢 提交于 2019-12-24 04:21:31
问题 I use jQplot with primeFaces. I would like a date formatter for the CategoryAxis (dates are in millis). I found different solutions on Stack but the problem seems to be my ticks : they are adds "after" the creation and options/format are not taking into consideration. ticks: this.cfg.categories, I tested with datetickformatter, a custom datetickformatter, CanvasAxisTickRenderer, and edition of CanvasAxisTickRenderer. In vain. this.cfg.axes = { xaxis: { renderer: $.jqplot.CategoryAxisRenderer,

Pointlabels not displaying when data point is at maximum

我怕爱的太早我们不能终老 提交于 2019-12-24 04:16:06
问题 I have the following graph: http://synicworld.com/media/graph.png Is there a way to get the pointlabel to show on the bars that have maximum value? 回答1: pointLabels { edgeTolerance: 100 } Looks like it's just edgeTolerance, which I had tried before, but not with a value high enough. 回答2: pointLabels { edgeTolerance: -20 } This will allow rendering of point labels even if they're too close to the edge. The negative value means there might be overlap onto the chart. 来源: https://stackoverflow

jqPlot points not correct when numberTicks set

醉酒当歌 提交于 2019-12-24 03:43:27
问题 I'm trying to limit the number of ticks on a dynamic jqplot I'm setting up. Unfortunately, when I do it, the points do not look accurate. Here's what it looks like: As you can see, the point on 10/05/12, for example, is not on it's correct axis. I realize that now these points are estimated, but the points must look accurate on the graph -- especially when hovering over the points gives you their correct date and y-axis value. Here's my code for this intilization, if that helps: var

jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts

无人久伴 提交于 2019-12-24 03:27:18
问题 I use EnhancedLegendRenderer plugin for my jqPlot charts, however I am unable to get it working for Pie charts. If I click on the legend labels, they don't show or hide series. Here is jsFiddle example. legend: { renderer: $.jqplot.EnhancedLegendRenderer, rendererOptions: { numberColumns: 3, seriesToggle: true }, show: true } Has anybody came across and found a solution? 回答1: The answer of Merrily somehow correct, ZingChart looks good and have such functionality out of the box, but jqPlot is

jqPlot - synchronize cursor across multiple charts

浪尽此生 提交于 2019-12-24 03:07:28
问题 I would like to use jqPlot to create 3 separate charts on a page, is it possible to configure jqPlot so that as the cursor moves across one chart, a vertical line would also move across the other charts? 回答1: I also needed to track a vertical line on 2 charts simultaneously and using Boro's answer as starting point, this is what I came up with: var mydata1 = [ [0, 3], [1, 7], [2, 9], [3, 1], [4, 4], [5, 6], [6, 8], [7, 2], [8, 5] ]; var mydata2 = [ [0, 5], [1, 4], [2, 8], [3, 7], [4, 2], [5,

jqPlot - synchronize cursor across multiple charts

有些话、适合烂在心里 提交于 2019-12-24 03:07:28
问题 I would like to use jqPlot to create 3 separate charts on a page, is it possible to configure jqPlot so that as the cursor moves across one chart, a vertical line would also move across the other charts? 回答1: I also needed to track a vertical line on 2 charts simultaneously and using Boro's answer as starting point, this is what I came up with: var mydata1 = [ [0, 3], [1, 7], [2, 9], [3, 1], [4, 4], [5, 6], [6, 8], [7, 2], [8, 5] ]; var mydata2 = [ [0, 5], [1, 4], [2, 8], [3, 7], [4, 2], [5,

jqPlot date axis - bars drawn on wrong day?

会有一股神秘感。 提交于 2019-12-24 01:19:23
问题 Pretty simple stuff here: var dataHits = [['2011-10-16',1],['2011-11-05',7],['2011-11-06',1],['2011-11-09',2],['2011-11-12',5]]; var plot1 = $.jqplot('chartHits', [dataHits], { title:'Zobrazenia profilu spolu', seriesDefaults:{ renderer:$.jqplot.BarRenderer, rendererOptions: { barPadding: 0, // number of pixels between adjacent bars in the same // group (same category or bin). barMargin: 0, // number of pixels between adjacent groups of bars. barDirection: 'vertical', // vertical or

How to make Jqplot Bar chart point labels vertical align.?

自作多情 提交于 2019-12-24 00:43:20
问题 I am making a graph where I need little help. (I have googled so much but can't succeed thats why asking. - If possible duplicate I apologize.) My Code: var plot2 = $.jqplot('distance_graph', data.distance, { // The "seriesDefaults" option is an options object that will // be applied to all series in the chart. seriesDefaults:{ renderer:$.jqplot.BarRenderer, rendererOptions: {fillToZero: false}, pointLabels: { show: true }, }, // Custom labels for the series are specified with the "label" //