charts

Xamarin.Forms: How To Populate A Pie Chart From Web API Data?

被刻印的时光 ゝ 提交于 2019-12-23 02:48:11
问题 Good Day Everyone. I'm creating a Xamarin.Forms Portable Application. And I'm currently coding a PieChart (OxyPlot) that contains static data . What I want to do is to have a Dynamic Data in every Pie Slice I have. Meaning, the data should come from my database. I'm already able to retrieved data from my database and display it as a List in the Mobile Application that I'm creating using Web Api like this one : ClientListPage.xaml <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns=

One x-axis tick every 7 points

只愿长相守 提交于 2019-12-23 02:45:47
问题 In area charts, I'd like to have a tick + label on x-axis every 7 points only, instead of one x-axis-tick per point. How to do that in the following code? google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Year', 'Sales', 'Expenses'], ['2013', 1000, 400], ['2014', 1170, 460], ['2015', 660, 1120], ['2016', 1030, 540] ]); var options = { title: 'Company Performance',

How to transform a datatable to a ReportingService-like matrix?

白昼怎懂夜的黑 提交于 2019-12-23 02:29:40
问题 Question: I have data that I retrieve from a database, which looks like this: Now I need to transform it to the below format, in order to be able to draw a piechart. In ReportingService, there is the Matrix control to achieve this, but what can I use to achieve the same in ordinary C#, in order to render it to a PieChart image ? Note that the number of buildings as well as the usage-types is variable and not known ahead of time. Edit: Solved thanks to Magnus and Google: SELECT * FROM ( SELECT

Unable to Create Chart in Highcharts and id is undefined

耗尽温柔 提交于 2019-12-23 02:16:08
问题 Hi i am building a pie chart by passing json array to drawchart it displaying labels of chart but unable to find the chart.i need a donut chart where each slice is clickable which carries a id as it parameter when i click the slice it need to open a another chart of that particular slice <script> $(document).ready(function () { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "bar.aspx/DistrictAnalysis", data: "{}", dataType: "json", success: function (Result) {

How to display sum stack bar in echarts

南楼画角 提交于 2019-12-23 02:02:27
问题 I'm using eChatrs as chart library. Needed chart should look like this : What i need, is to show totals above each column. What is the best practise for doing this ? 回答1: You can use formatter to achieve this, check this demo: let echartsObj = echarts.init(document.querySelector('#canvas')); series = [{ name: 'Server #1', data: [100, 115, 165, 107, 67] }, { name: 'Server #2', data: [85, 106, 129, 161, 123] }, { name: 'Server #3', data: [67, 87, 86, 167, 157] }] genFormatter = (series) => {

Rickshaw - js chart library: Need strings instead of numbers on axes

好久不见. 提交于 2019-12-23 01:55:22
问题 I am using rickshaw(http://code.shutterstock.com/rickshaw/) and want to have strings on one of the axes of the graph instead of numbers. Is it possible to do that? If so, how? 回答1: Your own formatter can be defined and be used Rickshaw.Fixtures.Number.myFormat = (y) -> if (y == val) return 'somestring'; else return ''some other string'; Use this as: yAxis = new Rickshaw.Graph.Axis.Y graph: graph tickFormat: Rickshaw.Fixtures.Number.myFormat graph.render() 来源: https://stackoverflow.com

Creating Pie Chart in iReport (4.6.0)

我的梦境 提交于 2019-12-23 01:52:31
问题 I need help making only one (complete) Pie Chart show up when using GROUP BY in my query ( SQL ) using iReport 4.6.0. I need to create a report using iReport (4.6.0; I am using the standalone version, not the NetBeans Plug-in) using data pulled from an SQL database. Basically, I'm trying to create a Pie Chart of what percentage of people in the DB are male and what percentage are female. At first I tried doing two separate queries to extract this information: SELECT COUNT('person_id') FROM

PrimeFaces Chart From Database

百般思念 提交于 2019-12-23 01:40:09
问题 I already have a CRUD webApp (JSF+EJB+JPA) and I'm trying to develop a chartBean class so I can use it in the View layer. The data to be rendered (through Primefaces-4 BarChart) should be read from a database. In the Chart, I have 2 chartSeries to be displayed: chartSeries1: the employeeGoal -> the 'valor' float column mapped in the Orc entity class below; chartSeries2: the employeeAccomplished -> the 'Realizado' integer column mapped in the hr_capacit30h entity class below. The X-Axis should

Google Chart horizontal scrolling

可紊 提交于 2019-12-23 00:48:09
问题 I'm trying to set the visualization of the graph to showing a maximum of 4 months with the possibility to scroll horizontally. I have tried to set some property like hAxis, but the page retun me back an error "a.getTime is not a function" when I set it. Another problem is that pick to zoom and horizontal scrolling only work in chrome desktop, but not in android webview. <html> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text

how to don't render gridline outside EllipseAnnotation in oxyplot?

夙愿已清 提交于 2019-12-22 22:27:11
问题 I want to draw a plot exactly like image below with oxyplot. the problem here is gridlines. i dont want to draw them outside of the largest circle. this is what i get till now : PS: for anyone else who want to know how to achieve this : (special thanks for @dd4711 who helped me with this question var model = new PlotModel { Title = "EllipseAnnotations", PlotAreaBorderColor = OxyColors.Transparent }; var series = new LineSeries { MarkerType = MarkerType.Cross, MarkerSize = 7, MarkerStroke =