charts

How use dCharts Widget in a Vaadin project?

∥☆過路亽.° 提交于 2020-02-23 07:12:48
问题 I was looking for a 'free alternative to Vaadin Charts and found DCharts Widget, but I can not find guides or complete documentation to' use. Does anyone know how to import and use this widget? The guides to get started? Vaadin: 7.4 Apache Tomcat V8 JDK 1.8 回答1: To use dCharts i have execute this step: Download .jar or copy dependency for maven/ivy from: https://vaadin.com/directory#!addon/dcharts-widget Follow the instructions in this official page based on your installation method. (I have

dc.js: Adding a Legend to Pie Chart

让人想犯罪 __ 提交于 2020-02-23 04:06:46
问题 I'm trying to add a legend to my pie chart but I keep getting the error TypeError: dc.legend is not a function . I'm not sure where to begin on fixing this. I've tried the solution here and here, but no luck. Any help would be greatly appreciated! var geoValue = facts.dimension(function (d) { return d.geo; }); var geoGroup = geoValue.group(); geoChart .width(480) .radius(100) .innerRadius(90) .dimension(geoValue) .group(geoGroup) .transitionDuration(500) .legend(dc.legend().x(250).y(100)) /

dc.js: Adding a Legend to Pie Chart

我的未来我决定 提交于 2020-02-23 04:05:00
问题 I'm trying to add a legend to my pie chart but I keep getting the error TypeError: dc.legend is not a function . I'm not sure where to begin on fixing this. I've tried the solution here and here, but no luck. Any help would be greatly appreciated! var geoValue = facts.dimension(function (d) { return d.geo; }); var geoGroup = geoValue.group(); geoChart .width(480) .radius(100) .innerRadius(90) .dimension(geoValue) .group(geoGroup) .transitionDuration(500) .legend(dc.legend().x(250).y(100)) /

Binding update adds news series to WPF Toolkit chart (instead of replacing/updating series)

大兔子大兔子 提交于 2020-02-20 10:25:08
问题 I'm currently recoding a bar chart in my app to make use of the Chart class in the WPF Toolkit. Using MVVM, I'm binding the ItemsSource of a ColumnSeries in my chart to a property on my viewmodel. Here's the relevant XAML: <charting:Chart> <charting:ColumnSeries ItemsSource="{Binding ScoreDistribution.ClassScores}" IndependentValuePath="ClassName" DependentValuePath="Score"/> </charting:Chart> And the property on the viewmodel: // NB: viewmodel derived from Josh Smith's BindableObject public

Sort the series data for every X-Axis in Highcharts

早过忘川 提交于 2020-02-15 08:32:26
问题 I need to sort the data of series from largest to smallest for every series. Sample fiddle series: [{ name: 'John', data: [{ y: 1}, {y: 2}, {y: 3}, {y: 4}, {y: 5 }] }, { name: 'Jane', data: [{ y: 5}, {y: 4}, {y: 3}, {y: 2}, {y: 1 }] }, { name: 'Joe', data: [{ y: 5}, {y: 2}, {y: 3}, {y: 4}, {y: 1 }] }] 回答1: You can use the sort function. It can be applied like that: series.forEach(function(name){ name.data.sort(function (a,b) { if(a.y < b.y) { return 1; } else if (a.y > b.y) { return -1; }

Sort the series data for every X-Axis in Highcharts

两盒软妹~` 提交于 2020-02-15 08:32:20
问题 I need to sort the data of series from largest to smallest for every series. Sample fiddle series: [{ name: 'John', data: [{ y: 1}, {y: 2}, {y: 3}, {y: 4}, {y: 5 }] }, { name: 'Jane', data: [{ y: 5}, {y: 4}, {y: 3}, {y: 2}, {y: 1 }] }, { name: 'Joe', data: [{ y: 5}, {y: 2}, {y: 3}, {y: 4}, {y: 1 }] }] 回答1: You can use the sort function. It can be applied like that: series.forEach(function(name){ name.data.sort(function (a,b) { if(a.y < b.y) { return 1; } else if (a.y > b.y) { return -1; }

Sort the series data for every X-Axis in Highcharts

ε祈祈猫儿з 提交于 2020-02-15 08:32:11
问题 I need to sort the data of series from largest to smallest for every series. Sample fiddle series: [{ name: 'John', data: [{ y: 1}, {y: 2}, {y: 3}, {y: 4}, {y: 5 }] }, { name: 'Jane', data: [{ y: 5}, {y: 4}, {y: 3}, {y: 2}, {y: 1 }] }, { name: 'Joe', data: [{ y: 5}, {y: 2}, {y: 3}, {y: 4}, {y: 1 }] }] 回答1: You can use the sort function. It can be applied like that: series.forEach(function(name){ name.data.sort(function (a,b) { if(a.y < b.y) { return 1; } else if (a.y > b.y) { return -1; }

C#/Excel: Working Around Maximum Series Size On Chart

怎甘沉沦 提交于 2020-02-13 02:23:42
问题 I need help programatically graphing more points than can fit in a single Excel series. According to http://office.microsoft.com/en-us/excel/HP100738491033.aspx the maximum number of points displayable on an Excel 2007 chart is 256000. Given that each series caps out at 32000 points, 8 series are required to plot the full 256000 points. My customer requires plotting of maximum amount of points per chart due to the large data sets we work with. I have moderate experience with C#/Excel interop

google.setOnLoadCallback not able to get the document elements

冷暖自知 提交于 2020-02-12 05:16:06
问题 I am trying to get some graph functionalities with corechart using JQuery but I am not able to get any document elements once the visualization APIs are loaded. Below is my sample example: $(document).ready(function() { if ($("#myId").length > 0) { google.load("visualization", "1.1", { packages: ["corechart"] }); google.setOnLoadCallback(function() { if ($("#myId").length > 0) { alert("Found a match!!"); }else{ alert("Not found!!"); } }); } }); <html> <head> <script src="https://ajax

How to use xAxis with Label in Charts-frameworks

核能气质少年 提交于 2020-02-08 05:07:56
问题 As title,After I check How to add Strings on X Axis in iOS-charts? this post. I still don't know where can I put "formato.stringForValue(Double(i), axis: taxis)" in for-in loop, as I know, when I implement this protocol ,this function will send out a "String".My question is how does it connect to my xAxis data?? Following is my code ,please refer to it. //setChartData func setChart(dataPoints:[String],values:[Double]){ self.barChartView.noDataText = "You need to provide data for the chart."