charts

How to create charts using NodeJS?

点点圈 提交于 2019-12-30 01:39:18
问题 Is it possible to create charts, e.g. bars and pies with custom icons using NodeJS? 回答1: d3 is probably your best bet. It can generate nearly any type of chart imaginable. You can generate the charts directly in the browser, or if you really need an image file, you can use the module in node and convert the output to an image. 回答2: You can use any charts library, basically. For example: Google Chart API Chartjs Chartist On your server template code, you might want to output the data using

How to draw a graph in chart control with mouse

不想你离开。 提交于 2019-12-29 09:22:33
问题 My task is to draw a graph in chart control using mouse and retrieve the (X,Y) points from the Graph. I tried of drawing a graph with mouse. Here is the normal Graph looks like. After drawing with mouse, it looks like : The code which i used to draw graph is : private void Form1_Load(object sender, EventArgs e) { chart1.ChartAreas[0].AxisX.Minimum =0170101; chart1.ChartAreas[0].AxisX.Maximum =0175951; chart1.ChartAreas[0].AxisY.Minimum=0780101; chart1.ChartAreas[0].AxisY.Maximum=0785951;

Is it possible to have different legend background colors for different data rows in Google bar chart, without breaking the chart?

故事扮演 提交于 2019-12-29 09:19:10
问题 See the example code: var data = new google.visualization.DataTable(); data.addColumn('string', 'Mac'); data.addColumn('number', 'Score'); data.addColumn({ type: 'string', role: 'style' }); data.addRows([ ['Mac model 12', 200, 'color: #8bba30; opacity: 0.75;'], ['Another Mac Model', 110, 'color: #ffcc33; opacity: 0.75;'], ]); var options = { title: '', width: 500, height: data.getNumberOfRows() * 40 + 100, hAxis: { minValue: 0, maxValue: 255, ticks: [0, 75, 150, 255], textPosition: 'out',

Draw multiple Google charts in for loop

喜夏-厌秋 提交于 2019-12-29 09:09:49
问题 I am trying to draw multiple Google charts in a for loop, but can't seem to make it work. I have seen some similar questions being asked, but only with PHP. Anyone who can help? This is what I have tried so far https://jsfiddle.net/8nfbz1v1/ <ul id="draw-charts"></ul> google.charts.load('current', {'packages':['corechart']}); for(var i = 0; i>6; i+){ var charts = ""; google.charts.setOnLoadCallback(drawChart); function drawCharts() { charts += '<td><div id="chart_div' + i +'" style="border:

Draw multiple Google charts in for loop

走远了吗. 提交于 2019-12-29 09:09:14
问题 I am trying to draw multiple Google charts in a for loop, but can't seem to make it work. I have seen some similar questions being asked, but only with PHP. Anyone who can help? This is what I have tried so far https://jsfiddle.net/8nfbz1v1/ <ul id="draw-charts"></ul> google.charts.load('current', {'packages':['corechart']}); for(var i = 0; i>6; i+){ var charts = ""; google.charts.setOnLoadCallback(drawChart); function drawCharts() { charts += '<td><div id="chart_div' + i +'" style="border:

Draw multiple Google charts in for loop

核能气质少年 提交于 2019-12-29 09:07:15
问题 I am trying to draw multiple Google charts in a for loop, but can't seem to make it work. I have seen some similar questions being asked, but only with PHP. Anyone who can help? This is what I have tried so far https://jsfiddle.net/8nfbz1v1/ <ul id="draw-charts"></ul> google.charts.load('current', {'packages':['corechart']}); for(var i = 0; i>6; i+){ var charts = ""; google.charts.setOnLoadCallback(drawChart); function drawCharts() { charts += '<td><div id="chart_div' + i +'" style="border:

JavaScript charting library to handle shading area between two lines

时光毁灭记忆、已成空白 提交于 2019-12-29 09:02:47
问题 I'm looking for a JavaScript charting library that supports shading the area between two lines. ChartDirector handles this quite nicely (see: http://www.advsofteng.com/gallery_line2.html - Inter-line Coloring), but I require a more interactive charting library. I've looked into various JavaScript libraries. Flot and Highcharts come close, but still have their limitations: Flot supports shading between two lines using the fillBetween plugin, but it does not support shading with multiple colors

How to have solid colored bars in angular-chart bar chart

浪子不回头ぞ 提交于 2019-12-29 08:43:12
问题 I'm using angular-chart (based on chart.js) to create some bar charts and am having trouble getting the bar styling I want. I want the bars to be solid colors like this: But I can't figure out how to get rid of the alpha that chart.js adds by default: My html looks like this: <body ng-app="myApp" ng-controller="myController as ctrl"> <canvas id="outreach" class="chart chart-bar" chart-labels="ctrl.socialChart.labels" chart-data="ctrl.socialChart.data" chart-series="ctrl.socialChart.series"

Changing Axis Labels on Excel Chart created in C#

半世苍凉 提交于 2019-12-29 08:41:35
问题 So I've been trying to figure this out for a while now but can't seem to get anywhere. I'm creating an Excel spreadsheet using C#. My spreadsheet contains a chart. I'm able to do everything with the chart EXCEPT change the X-Axis labels. I've tried just about everything that i can find but nothing works. Excel.ChartObjects xlChart = (Excel.ChartObjects)xlWorkSheet.ChartObjects(Type.Missing); Excel.ChartObject myChart = (Excel.ChartObject)xlChart.Add(1420, 660, 320, 180); Excel.Chart chartPage

Changing Axis Labels on Excel Chart created in C#

a 夏天 提交于 2019-12-29 08:41:14
问题 So I've been trying to figure this out for a while now but can't seem to get anywhere. I'm creating an Excel spreadsheet using C#. My spreadsheet contains a chart. I'm able to do everything with the chart EXCEPT change the X-Axis labels. I've tried just about everything that i can find but nothing works. Excel.ChartObjects xlChart = (Excel.ChartObjects)xlWorkSheet.ChartObjects(Type.Missing); Excel.ChartObject myChart = (Excel.ChartObject)xlChart.Add(1420, 660, 320, 180); Excel.Chart chartPage