chart

Highcharts / jQuery - destroy and rebuild chart with original options

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Based on info in this thread: Implement own state - INACTIVE_STATE? I have built a chart that fits my needs - jsfiddle I added some custom controls to allow the user to show/hide all series and to check/uncheck all series. These all work fine. The last part that I want to do is allow the user to reset the chart with the original options. This part I also got working, but there is a problem: once the chart is rebuilt, the functions that allow the user to show/hide/check/uncheck no longer work because I have destroyed and re-specified the

C# Export Excel Chart as object (not as picture) to Word

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to export an excel chart to Word as an object (Excel Chart), not as a picture. As picture is very easy with Chart.CopyPicture Document doc ; // Existing document string chartSheet = xlsFilePath + "!" + chartSheetName ; string type = "Excel.Chart.8" ; InlineShape shape = doc . Content . InlineShapes . AddOLEObject ( ClassType : type , FileName : chartSheet , LinkToFile : false , DisplayAsIcon : false ); For example: This one This other uses copy and paste, only it inserts cells, not a chart. With chart, copy method copies the

Ionic + Angular Charts: Uncaught Error: Chart.js library needs to included

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to include charts into my Ionic application, but I get error. I have download the angular.js folder and chart.js folder into my lib folder and added the following lines to index.html: <script src="lib/angular-chart.js/dist/angular-chart.js"></script> <script src="lib/chart.js/dist/Chart.js"></script> <script src="lib/angular-chart.js/dist/angular-chart.min.js"></script> <script src="lib/chart.js/dist/Chart.min.js"></script> I also added chart.js to my module: angular.module('myApp', ['ionic', 'chart.js']) but I still get the

vue-chartjs reactive data error

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use reactive data mixin for vue-chartjs The mounted function to set the initial data is working and I can see the chart correctly using the API response: fetchSessionTrends() { axios.get(endpoint) .then(({data}) => { this.sessions = data.map(session => session.sessions); this.sessionLabels = data.map(label => label.date); this.loaded = true; }); }, The data: data() { return { endpoint: 'public/api/sessions', sessions: [], sessionLabels: [], loaded: false, daysFilter: 14 }; }, I am display the chart with a text field to provide

Highcharts series update with animation

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I can update the data value of a spider chart and see it animated using this method: chart . series [ i ]. setData ( newSeries [ i ]. data ); But, as the series in a spider chart consists not only of data but also other fields, as in series : [{ name : 'Allocated Budget' , data : [ 43000 , 19000 , 60000 , 35000 , 17000 , 10000 ], pointPlacement : 'on' }, { name : 'Actual Spending' , data : [ 50000 , 39000 , 42000 , 31000 , 26000 , 14000 ], pointPlacement : 'on' }] Along with the data, when I need to change the value name: 'Actual

Highcharts error #17 when adding series to the chart using angular 4

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to implement a histogram high chart using angular 4. I am getting error "Highcharts error #17 when adding series to the chart. My code is as follows. The series happens to look fine not sure what the problem could be Histogram component import { Component, Input } from '@angular/core'; @Component({ selector: 'histogram', template: '<chart [options]="options" (load)="getInstance($event.context)"></chart>', styles: [` chart{ display: block; width: 100% !important; padding:0; } `] }) export class HistogramChartComponent { public

stepped color shading in highcharts doughnut chart

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to create a chart like this using highcharts - This chart is created using some other charting tool and this specific chart type is called step chart. Basically what i need to do is for all different categories in the chart displayed above like Efficiency, Mortality etc., they can have different values like 1%, 7%, 51% etc. And i need to create a shading which will have color codes and will be displayed in scale like image with color code variation upto the accuracy of 1% value for each category. This means the color code in chart for

Highcharts Drawing a line with chart.renderer.path

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm looking at this formula: http://www.w3.org/TR/SVG/paths.html#PathDataMovetoCommands And here is how I draw it: chart.renderer.path(['M', someNumber, 10, 'V', 1500, 0]) .attr({ 'stroke-width': 2, stroke: 'red', id: 'vert' }) .add(); And the line is drawn but it goes through the whole graph. I want it to be small. I think that to make it smaller i need to change the '10' but whatever value I put (even 10.000) the line's length remains the same. 回答1: In the path attribute: path(['M', someNumber, 10, 'V', 1500, 0]) The 'M' means moveto,

#VALX value in MS Chart in C# isn't coming in “M/d H:mm” format

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I wrote the following Winforms code: chart1 . ChartAreas [ 0 ]. AxisX . LabelStyle . Format = "M/d H:mm " ; This makes my X-axis seen as, for example 11/25 8:00. But when I provide the tooltip for the datapoints it just provides the date and not the format "M/d H:mm". Here is my code: chart1 . Series [ 0 ]. ToolTip = "Computer Name: #SERIESNAME \nDate & Time: #VALX \nLevel: #VALY" ; ` And the tooltip result which I got was this: Computer Name: COMP NAME Date & Time: 11/25/2013 Level: 4 I want the "Date & Time" value as " 11/25 8:00

amCharts Stock Chart with multiple datasets not showing

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I went through the examples and docs of amCharts. Here is my problem: the chart is showing just a line and not two as defined in the 2 datasets: var chart ; function createStockChart () { chart = new AmCharts . AmStockChart (); // DATASETS ////////////////////////////////////////// var dataSet = new AmCharts . DataSet (); chart . dataSets = [{ title : "XWD.TO" , color : "#000000" , fieldMappings : [ { fromField : "value" , toField : "value" }, { fromField : "volume" , toField : "volume" } ], dataProvider : chartData , categoryField