jqplot

jqplot Side by Side Stacked Bar Chart

天大地大妈咪最大 提交于 2019-12-01 00:04:51
问题 Is it possible to achieve a side by side stacked bar chart using jqplot? For example the X-Axis would be a given month and for each month you would have some number of stacked bars. Something like this: NOTE: I'm asking for something different that just a normal stacked chart. Please look at the picture to get a better understanding of what I'm trying to do. 回答1: yes, it is possible to do so. with reference from jqplot Source Code: $(document).ready(function(){ var s1 = [2, 6, 7, 10]; var s2

How to i set jqplot bar chart colours per bar?

岁酱吖の 提交于 2019-11-30 17:40:54
I'm trying to set the colours of my jqplot bar chart bars. There will always be six bars present, grouped into sets of 2 bars. Here is an example of the data being plotted: line1 = [6000, 5000, 5500]; line2 = [16000, 10000, 14000]; I've used the following so far: seriesColors: ["#F3CBBF", "#BFDDE5", "#CF3501", "#027997", "#CF3501", "#027997"], But jqplot alternates between the first 2 bars each time instead of using all of the declared colours. This is probably as it only determines 2 series being present, one per set of data. Is there a way to set the bar colours explicitly? I do this using

jqplot - Individual values, not totals in stacked chart

流过昼夜 提交于 2019-11-30 09:22:32
In a stacked bar chart we can show total of each series in every stack, like this However I want value of each series to be shown, not total like this(please ignore the fact that the two samples have different number of series) Additionally I would like to show the total of the stack at the top. What i mean is that, f you look at the first graph, in the first bar, values are 5,15(5+10),24(15+9). My desired result should be like the second graph, where values for the first bar are like, 10,9 and finally a total at the top 19 Is it possible with this library? A bit of a hack here. Since you want

reuse jqplot object to load or replot data

百般思念 提交于 2019-11-30 08:46:01
I am using JqPlot for charts , my problem is i want to load different data on different click events. But once the chart is created and loaded with the data for the first time; i don't know then how to load data when another event fires that means i want to reuse the chart object and want to load/replot the data when events get fired something like... chartObj.data = [graphData] That seems to work to replot data. chartObj.series[0].data = [[0, 4], [1, 7], [2, 3]]; chartObj.replot(); Also, you can check this: https://groups.google.com/group/jqplot-users/browse_thread/thread/59df82899617242b

JqPlot : Set a fix height value for the graph area not including y axe labels

ε祈祈猫儿з 提交于 2019-11-30 08:31:58
问题 I am using JqPlot. The graph height is depending on the height of the main container or the default JqPlot value. My problem is that if the y label is very long, the graph size is reduced to fit in the main container. Is it possible to set a fix value for the graph height which is not depending on the label text length? My need : I would like always display the same graph height (400px for example) not depending on the y label text length Here is an image to depict my problem: 回答1: Only thing

How to i set jqplot bar chart colours per bar?

早过忘川 提交于 2019-11-30 01:29:44
问题 I'm trying to set the colours of my jqplot bar chart bars. There will always be six bars present, grouped into sets of 2 bars. Here is an example of the data being plotted: line1 = [6000, 5000, 5500]; line2 = [16000, 10000, 14000]; I've used the following so far: seriesColors: ["#F3CBBF", "#BFDDE5", "#CF3501", "#027997", "#CF3501", "#027997"], But jqplot alternates between the first 2 bars each time instead of using all of the declared colours. This is probably as it only determines 2 series

Date axis in linechart using primefaces and jqplot

随声附和 提交于 2019-11-29 17:35:01
I've tried to show a linechart with primefaces and jqplot. But I don't get it. I have this code in my bean: CartesianChartModel graphic = new CartesianChartModel(); LineChartSeries series = new LineChartSeries(); DateFormat dateFormat = new SimpleDateFormat("mm/dd/yy"); String date1 = "01/10/13"; String date2= "01/15/13"; String date3= "02/20/13"; p=dateFormat.parse(date1); series.set(p.getTime(), 10); p=dateFormat.parse(date2); series.set(p.getTime(), 20); p=dateFormat.parse(date3); series.set(p.getTime(), 15); graphic.addSeries(series); And I have this code in my extender function: function

Padding values on inverted axis in jqplot

安稳与你 提交于 2019-11-29 15:59:51
i would like to know how to set the correct padding values to a jqplot axis so that points aren't rendered on the borders. this is the code i have yaxis:{ max: 1, min: 200, numberTicks: 5, tickOptions:{ formatString:'%i' } } this displays an inverted axis going from 200 on the bottom to 1 on the top. values vary also from 1 to 200. i have tried with maxPad, minPad and even setting the ticks manually with ( ticks: ['200','150','100','50','1'] ) but no luck so far. thanks in advance :) That was interesting and relaxing at the same time. The answer to your problem is obvious, since the padding

reuse jqplot object to load or replot data

落爺英雄遲暮 提交于 2019-11-29 11:55:53
问题 I am using JqPlot for charts , my problem is i want to load different data on different click events. But once the chart is created and loaded with the data for the first time; i don't know then how to load data when another event fires that means i want to reuse the chart object and want to load/replot the data when events get fired something like... chartObj.data = [graphData] 回答1: That seems to work to replot data. chartObj.series[0].data = [[0, 4], [1, 7], [2, 3]]; chartObj.replot(); Also

JqPlot : Set a fix height value for the graph area not including y axe labels

时光怂恿深爱的人放手 提交于 2019-11-29 06:55:30
I am using JqPlot. The graph height is depending on the height of the main container or the default JqPlot value. My problem is that if the y label is very long, the graph size is reduced to fit in the main container. Is it possible to set a fix value for the graph height which is not depending on the label text length? My need : I would like always display the same graph height (400px for example) not depending on the y label text length Here is an image to depict my problem: Only thing that comes to my mind is something along these lines presented in this sample. After the call to paint the