jqplot

jqplot - superscript in axis label

只谈情不闲聊 提交于 2019-12-06 08:07:05
问题 As the title says how do I add superscript fonts to the axis labels in a jqplot graph? I tried using Javascript sup() function and also actual html tags for the titles of the axes but to no vain. Basically I need to display units like m 3 etc. Do I have to tinker with the AxisLabelRenderer or is there any obvious workaround I am missing? Thanks. 回答1: You can use unicode characters for do that; "Superscript two"(\u00B2) (2) "Superscript three" (\u00B3) (³) "Superscript one" (\00B9) (¹) try

How to display the labels outside the pie chart in jqplot?

笑着哭i 提交于 2019-12-06 05:44:06
问题 Jqplot has the chart like following jqplot Chart my question is how to display the labels outside a jqplot chart like the following high chart , high chart is available at here fiddle hight charts <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> How to achieve displaying labels outside the chart with lines in jqplot ? 回答1: dataLabelPositionFactor controls position of label on slice. Increasing will slide

jqPlot - Pie legend too tall when there are many legend items

寵の児 提交于 2019-12-06 03:44:24
问题 I'm using jqPlot to create a pie chart with a legend. Part of my jqPlot pie options look as follows: seriesDefaults: { renderer: $.jqplot.PieRenderer, rendererOptions: { padding: 10, showDataLabels: true, dataLabelFormatString: '%.2f%%', sliceMargin: 2, startAngle: -90 } }, legend: { show: true, location: 'e', placement: 'outside', xoffset: 1, fontSize: '11px', rowSpacing: '10px', textColor: '#222222', fontFamily: 'Lucida Grande, Lucida Sans, Arial, sans-serif' } Recently I've come across a

Vary Color Bar For Two Series Data in Jqplot

蹲街弑〆低调 提交于 2019-12-05 09:14:48
I want to know how to make vary color bar for two series in Jqplot. If I have only one series data, it works perfectly like the image below The red and green color based on its value. But if I have two series data, I can't configure to have two series color for each series data. So far, I can only make this graph I want the two series graph can have vary color based on its value as well as the one series graph. This is my code chart = $.jqplot('map-chart', [dataChart, dataChart2], { title: 'TIME', legend: { renderer: $.jqplot.EnhancedLegendRenderer, show: true, location: 'ne' }, series: [

jqPlot - multiline ticks with angle in x-axis

谁都会走 提交于 2019-12-05 08:08:24
I have a question about ticks in x-axis. I work with jqPlot 0.9.7 My ticks are multiline, like this: a <br> b <br> c <br> d . I use renderer: $.jqplot.CategoryAxisRenderer and it works well, so the ticks show in multiline and works. Now I need to rotate them 30º. I tried 'angle: -30' but it doesn't work. With this config: xaxis: { renderer: $.jqplot.CategoryAxisRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer , ticks: ['a <br> b <br> c <br> d' , 'p <br> q <br> r <br> s'], tickOptions:{ angle: -30, fontSize: '9px' } } The ticks are shown in one single, rotated, long line. Neither <br>

jqPlot: how to live update a chart

空扰寡人 提交于 2019-12-04 16:52:36
问题 I'm unable to figure out myself or find a proper example on how to perform live updates in jqPlot in a similar way as shown in this highcharts example. 回答1: Based on this, I prepared the following example: $(document).ready(function() { var plot1 = $.jqplot('chart1', [new Array(1)], { title: 'Live Random Data', series: [ { yaxis: 'y2axis', label: '', showMarker: false, fill: false, neighborThreshold: 3, lineWidth: 2.2, color: '#0571B6', fillAndStroke: true} ], axes: { xaxis: { renderer: $

Including jqPlot files in particular order

て烟熏妆下的殇ゞ 提交于 2019-12-04 15:48:46
Is there a particular order that jQPlot has to be included in a header? Currently I'm using jQMobile, but for some reason my jqPlot BarRenderer.js isn't being recognized... <head> <!-- CSS --> <link rel="stylesheet" href="./signup.css"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /> <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css" /> <!-- Modernizer --> <script type="text/javascript" src="./modernizr.custom.56582.js"></script> <!-- jquery --> <script src="http://code

jQPlot - remove vertical grid lines

China☆狼群 提交于 2019-12-04 15:06:51
问题 I am using jqPlot as my charting framework and have numerous charts in my application, primarily line and stacked bar charts. I now have a requirement to only show the horizonal grid lines on these charts and do not see any options in jqPlot to do this. There is a showGridline option but that disables the grid lines entirely. Is it possible to remove only the vertical grid lines in jqPlot and continue to show the horizontal ones? 回答1: I figured it out. You can apply showGridline to a single

jqplot: “this.proxy.getTime is not a function” / date input parser?

自作多情 提交于 2019-12-04 14:50:01
I try to use jqplot for drawing an graph. So i modified this example in order to get an date based graph. Currently my code is like this: var plot1 = $.jqplot('chartdiv', [[["2010-12-25.14:19:47",1], ["2010-11-25.14:19:47",2], ["2010-10-25.14:19:47",3]]], { title: 'mytitle', series: [{ label: 'my label', neighborThreshold: -1 }], axes: { xaxis: { renderer: $.jqplot.DateAxisRenderer, // min:'August 1, 2010 16:00:00', tickInterval: '1 months', tickOptions:{formatString:'%Y-%m-%d.%H:%M:%S'} }, yaxis: { tickOptions:{formatString:'$%.2f'} } }, cursor:{ show: true, zoom:true, showTooltip:false } });

jqplot - superscript in axis label

馋奶兔 提交于 2019-12-04 14:38:43
As the title says how do I add superscript fonts to the axis labels in a jqplot graph? I tried using Javascript sup() function and also actual html tags for the titles of the axes but to no vain. Basically I need to display units like m 3 etc. Do I have to tinker with the AxisLabelRenderer or is there any obvious workaround I am missing? Thanks. You can use unicode characters for do that; "Superscript two"(\u00B2) (2) "Superscript three" (\u00B3) (³) "Superscript one" (\00B9) (¹) try this: xaxis: { label: "Units m\u00B3" }, Here's another answer, with HTML entities, which also works in jqPlot: