jqplot

JQPlot ( view plot image ) breaks in Firefox

杀马特。学长 韩版系。学妹 提交于 2019-12-11 08:23:23
问题 For some reason jqplot can't render images in firefox. It just crashes on line 182 of the image script with no plausible problem I can see. When I run the exact same function in chrome it works perfectly. Never had this problem before. I recently switched to OSX, think it might have something to do with firefox on this os. If anyone knows of a solution please let me know. I will post an update if I figure it out myself. 回答1: The issue is likely with this piece of code in writeWrappedText()

Putting javascript charts inside an extjs window

十年热恋 提交于 2019-12-11 07:24:15
问题 How would I put an external javascript chart, like one from flot or jqplot, inside an extjs window? I know that I could use the charts that extjs provides, but i want to put a flot or jqplot chart inside the window instead. 回答1: Just do as Chris said (why didn't you post it as an answer, dude?). Here's a complete example: Live on jsFiddle (be sure to check the "External Resource" tab; Flot code is from their basic example). Ext.onReady(function() { Ext.widget('window', { autoShow: true

Jqplot image download by a button click in IE

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 05:44:50
问题 I have jqplot and I want to download it once click a button as a jpg or png. I can do it using $('#chartdiv').jqplotSaveImage(); (chartdiv is the div with plot) It is working in chrome and firefox only. In IE it is not working.I tried in IE 11. And I have another problem in chrome the downloaded image file name is 'download' and in firefox it is some wired name with .part extension (ex :- ka8ShgKH.part). Is there a way to put plot title as the download file name ? thank you. $("#btnSaveImg")

jqPlot with DateAxisRenderer and ajax

眉间皱痕 提交于 2019-12-11 03:14:05
问题 I'm running into difficulties trying to combine DateAxisRenderer and ajax on a jqPlot chart. The code below does not produce any errors but it creates a chart with no gridlines, no labels on the y axes, and no data points plotted. There is just a blank white chart background with two x axis labels both saying Dec 31, 69. If I swap out the ajaxDataRenderer and use data from an array like what is done in this example (http://www.jqplot.com/tests/date-axes.php) everything renders correctly. Here

How to move the values displayed on the bar to down to it?

…衆ロ難τιáo~ 提交于 2019-12-11 01:08:44
问题 Currently working with stack bar chart in jqplot. My doubt is how to move the value displayed on the bar to down of its bar? fiddle avail at here $(document).ready(function(){ var yAxisLabels = ["Label1", "Label2", "Label3", "Label4"]; var legendValues = ["series1", "series2", "series3", "series4"]; var pLabels1 = ['70%','38%','71%','28%']; var pLabels2 = ['27%','49%','27%','44%']; var pLabels3 = ['2%','10%','2%','17%']; var pLabels4 = ['1%','4%','1%','12%']; var group4 = [52,528,129,264];

plotting JSON data using jqPlot

青春壹個敷衍的年華 提交于 2019-12-11 00:40:51
问题 I'm trying to plot some JSON Data using the jqPlot library within an HTML 5 app powered by jqMobile. I'm placing the following code within the 'body' of the html page. Is there something I'm missing here? <script> $(document).ready(function() { // get the JSON data from server $.getJSON("myspecialurl", function(data) { success: function(data) { plotData(data); } }); // plot the data function plotData(data) { ds = []; $(data).find('latitude').each(function() { ds.push([$(this).attr('answer'),

How to add jqplot pie chart labels with lines?

梦想的初衷 提交于 2019-12-11 00:18:14
问题 I have a pie chart and I can add labels for it normal way.But I want to add labels with line as following. I took this image from web as a example. here is my code , drawPieCharts = function(dev,title,data){ $('#'+dev).empty(); var plot = $.jqplot(dev, [data], { title: { text: title, fontWeight: 'bold', fontSize : '16', show: true }, grid: { drawBorder: false, drawGridlines: false, background: '#ffffff', shadow:false, //diameter : 30 }, axesDefaults: { }, highlighter: { show: true,

jqPlot highlighter change x value

随声附和 提交于 2019-12-10 20:59:15
问题 I have a jqPlot Line graph and I am trying to work out how to customise what the highlighter text is for the X value. So. I have the following: var line1=[100, 68, 63, 36, 28]; var line2=[100, 71, 68, 42, 32]; var line3=[100, 60, 45, 15, 5]; var line4=[100, 76, 58, 22, 8]; var plot3 = $.jqplot('chart3', [line1,line2,line3,line4], { axes:{ xaxis: { ticks: [ [1, 'group1'], [2, 'group2'], [3, 'group3'], [4, 'group4'], [5, 'group5'] ], tickOptions:{ showGridline: false, }, }, yaxis:{ label:

JQPlot - Pie chart - get the clicked slice colour

你。 提交于 2019-12-10 16:26:57
问题 my requirement is to get the selected colour of the pie slice when the user clicks on it. It would be good if I can do it within the following function: $('#chart1').bind('jqplotDataClick', function (ev, seriesIndex, pointIndex, data) { alert("ev = " + ev + " seriesIndex = " + seriesIndex + "pointIndex = " + pointIndex + "data = " + data); }); Any ideas? Thanks. 回答1: Yes you can get the color : plot.series[seriesIndex].seriesColors[pointIndex] where plot is the var in which you store your

How do I customize the black border around JQPlot

无人久伴 提交于 2019-12-10 15:26:39
问题 How do I customize the black border around the graphs in JQPlot? I searched the CSS file extensively and couldn't find anything. [UPDATE] Please see this image if you are not understanding what i mean: http://img339.imageshack.us/img339/5796/jqplot.png Thanks 回答1: Look at the jqplot options for grid drawBorder, borderColor and shadow: var plot1 = $.jqplot ('container', [[3,7,9,1,4,6,8,2,5]], {grid:{borderColor:'transparent',shadow:false,drawBorder:false,shadowColor:'transparent'}}); $