charts

Chart Compression

橙三吉。 提交于 2019-12-29 01:28:11
问题 I am writing a C# desktop application that requires a graphical representation (XoY) of some values (Y - value, X - (in) time). chart1.Series[0].Points.AddXY(time, new Random().Next(-325, 531)); //this operation occurs at a set interval The operation does its job, adding up values; however, in time the chart has the tendency to "squeeze" itself which makes interpreting it a much harder task. I want to make the graphic generate a better output, despite the number of points. Notes I consider

Charting in ASP.Net MVC 3

大兔子大兔子 提交于 2019-12-28 08:09:09
问题 I'm using Chart web helper in ASP.Net MVC 3. I have seen a range of shiny images online showing capabilities of this API, but there is hardly any documentation on how to style the charts. For example, I need to display labels outside of the chart, I'd like to specify percentage, rather than decimal values, etc. There is a webforms project for download: http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx and very simple class documentation

How to display X-Axis and Y-Axis values when move the mouse?

百般思念 提交于 2019-12-28 07:08:12
问题 How can I display the values of X-Axis and Y-Axis when the mouse is moved anywhere within the chart area (like the picture)? The HitTest method can not be applied for moving or it can only be applied for clicking on the chart? Please help me. Thanks in advance. The tooltip shows data outside the real area data drawn 回答1: Actually the Hittest method works just fine in a MouseMove ; its problem is that it will only give a hit when you are actually over a DataPoint . The Values on the Axes can

How to display tooltips on jqplot pie chart

半腔热情 提交于 2019-12-28 06:45:12
问题 I have a jqplot pie chart with a legend and I would like to get the legend text to appear as a tooltip when the mouse hovers on the pies. I'm not sure how to do that. Does anyone have any experience doing similar? example code: $(document).ready(function(){ var data = [['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14],['Out of home', 16],['Commuting', 7], ['Orientation', 9]]; var plot1 = jQuery.jqplot ('chart1', [data], { seriesDefaults: { renderer: jQuery.jqplot.PieRenderer,

How do I align date and values to gridlines in Google Chart?

霸气de小男生 提交于 2019-12-28 04:31:11
问题 I'm using Google Chart in my application with the following code (JSFiddle): google.load('visualization', '1', {packages: ['corechart']}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('date', 'date'); data.addColumn('number', 'view'); data.addRows([ [new Date('2015-08-01'), 5], [new Date('2015-08-02'), 7], [new Date('2015-08-03'), 2], [new Date('2015-08-04'), 16], [new Date('2015-08-05'), 3], [new Date('2015-08-06'

VBA: Modify chart data range

谁说胖子不能爱 提交于 2019-12-28 02:12:05
问题 My "Chart data range" is ='sheet1'!$A$1:$Z$10 . I'd like to make a VBA macro (or if anybody knows a formula I can use, but I couldn't figure one out) to increase the ending column of the range for chart1 by 1 every time I run the macro. So essentially: chart1.endCol = chart1.endCol + 1 What is the syntax for this using ActiveChart or is there a better way? 回答1: Assuming that you want to expand the range (by adding one extra column) to add one more observation for each series in you diagram

Highcharts percentage of total for simple bar chart

廉价感情. 提交于 2019-12-28 02:04:32
问题 I have a simple 1-series bar chart where each bar has a nominal value. I can plot this fine with the data labels and axis representing the value for each bar but I'd like to have the data label and axis show the percentage of the total of the series while the nominal value is shown in a tooltip on hover (thus I don't want to convert the data to percentages prior to plotting). Here is an image showing what I'm after and where I am now: fiddle Here's what I currently have for axis labels as the

Add Custom Labels to Axes in Highcharts

别等时光非礼了梦想. 提交于 2019-12-25 20:09:07
问题 I have a Highchart in my application showing car sales in each month. Given a user input value for a date, chart should show car sales in last 12 months. If user filter date is 2018-09-10, it should show car sales of Sep-2017, Oct-2017, Nov-2017, Dec-2017, Jan-2018, Feb-2018, Mar-2018, Apr-2018, May-2018, Jun-2018, Jul-2018, Aug-2018, Sep-2018, Oct-2018, Nov-2018, Dec-2018. And also I need to show a year separation in the chart itself. I found an image similar to it, . I need something like

Add Custom Labels to Axes in Highcharts

怎甘沉沦 提交于 2019-12-25 20:08:29
问题 I have a Highchart in my application showing car sales in each month. Given a user input value for a date, chart should show car sales in last 12 months. If user filter date is 2018-09-10, it should show car sales of Sep-2017, Oct-2017, Nov-2017, Dec-2017, Jan-2018, Feb-2018, Mar-2018, Apr-2018, May-2018, Jun-2018, Jul-2018, Aug-2018, Sep-2018, Oct-2018, Nov-2018, Dec-2018. And also I need to show a year separation in the chart itself. I found an image similar to it, . I need something like

Highcharts Categories don't add

倾然丶 夕夏残阳落幕 提交于 2019-12-25 19:47:34
问题 I want to show number '6' category but data in series are steady like that. Yet what happened is that only 1 - 5 are showed in category. How will I do this? Please see code below: function getchart() { $('#container').highcharts({ chart: { type: 'column', renderTo: 'container' }, title: { text: 'Daily Events', style: { 'color': '#06F', 'font-family': 'Roboto', 'font-size': '16px', 'font-weight': 'bold' }, useHTML: true }, xAxis: { categories: [ '1', '2', '3', '4', '5', '6' ] }, yAxis: { min: