Click here to Skip to main content
15,890,506 members
Everything / Chart

Chart

chart

Great Reads

by Bharat Mallapur
Sample project to host MS-Chart in your WPF application
by Sunasara Imdadhusen
MS Test Result Viewer is a free open source library to convert MS Test result (.trx) file into HTML. It is also allowed you to perform MS Test on your test container project (.dll) file. This utility will work with simple command line arguments to generate test report in HTML format with excellent U
by Angelo Cresta
.NET 5 version of dotnet/winforms-datavisualization
by Xavier John
Candlestick

Latest Articles

by Code Artist
Implementation of DynamicX-Largest-Triangle-Three-Bucket for chart data plotting
by Vishwas_R
Simple Audio Player to browse any song with Play / Pause, Stop options & a waveform generated using CanvasJS charts
by Vishwas_R
Create Angular dynamic chart with few simple steps using CanvasJS. Dynamic charts are also referred to as real-time chart / live chart.
by Angelo Cresta
.NET 5 version of dotnet/winforms-datavisualization

All Articles

Sort by Updated

Chart 

21 Oct 2023 by Code Artist
Implementation of DynamicX-Largest-Triangle-Three-Bucket for chart data plotting
8 Aug 2023 by Member 12335655
what i have: data in GDV (column1, Column2) aim: link all data present in dgv to the chart, displaying the line graph problem: can't load the graph What I have tried: Public Class Form1 Private Sub Button1_Click(sender As Object, e As...
30 Jul 2023 by Graeme_Grant
Best place to ask is here: Issues · beto-rodriguez/LiveCharts2 · GitHub[^] or here: Questions tagged [livecharts] - StackOverflow[^] But... looking at the documentation I found this: CartesianChart.Column series props - LiveCharts2[^] which...
30 Jul 2023 by M.Vo.
Hello, I just discovered LiveCharts2 for a WPF project, nice tool, used it for my project, everything fine. But now, the customer: In a bar chart he wants some of the bars solid, some hatched. No problem with different bars, but how do I get a...
28 Feb 2023 by suhasinishinde
Hi All,Need urgent help. have a point with x,y value and i want to check when this point will touch the line in the line graph. need to write the code to get to the point where the point is on the line graph. line graph has a list of points....
28 Feb 2023 by Graeme_Grant
Why not use something like LiveCharts 2[^], they do all the hard work for you...
17 Dec 2022 by Graeme_Grant
LiveCharts - LiveCharts2[^] is very simple to use. The documentation is very good with code samples given. From their documentation, ref: samples.bars.withBackground - LiveCharts2[^] 1. ViewModel using CommunityToolkit.Mvvm.ComponentModel;...
17 Dec 2022 by mojtabahakimian
I'm using C# WPF in Visual Studio with .NET Framework 4.7.2 with SQL Server 2019 Database, and using LiveChart What I want I'm looking for easy and good tool for chart in WPF to control these things : ...
12 Sep 2022 by niksirat2030
Let's say you want to draw a diagram for how to calculate your final value "finalresult" so that the operators of multiplication or division or subtraction or addition are known in the diagram. How can this be done? finalresult = a1 + a2 a1 =...
12 Sep 2022 by RickZeeland
You can find some (free) alternatives to Wolfram Mathematica here: computer-algebra-systems[^]
12 Sep 2022 by OriginalGriff
You'd have to look at the variables and what ranges and increments they should have. Because in what you show us, all that generates is a single value for a given set of p, q, rn, tn, kn, un, and vn - which you can chart if you want but it would...
5 Sep 2022 by Joshna J U
i tried the below code,but its not working,have to place the text content inside doughnut What I have tried: this.data = { labels: ['a', 'b', 'c', 'd', 'e'],...
23 Aug 2022 by Member 15063805
I need to plot the data from the server in a GUI in client. I am getting the data from the server to the client on PC. What I am currently doing is getting the data to a text box and each text is put into a array and data is taken from the array...
23 Aug 2022 by Code Artist
You can consider using list ofPointF to store data. using System.Drawing; List Datas = new List(); Datas.Add(new PointF(,)); Skip textbox, directly store incoming data to list.
4 Aug 2022 by Vishwas_R
Simple Audio Player to browse any song with Play / Pause, Stop options & a waveform generated using CanvasJS charts
27 Jul 2022 by Vishwas_R
Create Angular dynamic chart with few simple steps using CanvasJS. Dynamic charts are also referred to as real-time chart / live chart.
30 Jun 2022 by JFERGJ
The only solution that I can implement for this situation was to adapt the height of the entire control according to the number of legends that are added. Obviously the setting depends on the width of the control. So what I did was save the...
19 May 2022 by JTrum
Found now a solution for me: AxisX.IntervalType, AxisX.Minimum, AxisX.Maximum must match the series DataBindXY(xValues, yValues) Dim ints as integer = CInt(DateDiff(DateInterval.WeekOfYear, von_X, bis_X, _ FirstDayOfWeek.Monday,...
17 May 2022 by JTrum
As shown in the code, I get CustomLabels displayed, but they are not on the MajorTickMarks defined in the ChartArea. How do I get this in sync? Dim from_X, to_X As Date from_X = myClass.get_DateOfWeek(CInt(yearkNo), CInt(weekNo),...
8 Apr 2022 by 123 123 2022
I extracted values from datagridview1 to calculate an exponential equation. foreach (DataRow pr in Global_var.data_source.Tables[0].Rows) { try { x1 = (double)pr[0]; y1 = (double)pr[1]; ...
23 Mar 2022 by Kohle101
Hello together, thank you for your help. I think Scichart is what I need.
16 Mar 2022 by Kohle101
My next job is to program an application to visualize data in a chart. The chart itself can be simple, I need only lines. The challenge is the mass of data and with each line. I would like to give you an example. My customers (that are my...
16 Mar 2022 by Gerry Schmitz
Used it in process control for customers (WPF). Best one I found. (I make the customer pay for the license which becomes "his" license). SciChart | WPF Charts, iOS Charts, Android Charts, JavaScript Chart[^]
15 Mar 2022 by RickZeeland
Maybe you can use one of these: open-source-dashboard-frameworks[^] Grafana is well known, but it is not a .NET solution. If you prefer a .NET solution, take a look at: best-and-fastest-graphic-controls-for-wpf-c[^]
16 Feb 2022 by John Bon Jovy
I'm trying to output some data to the chart. Values that will be plotted are around 10000. The thing is, that without scaling, the difference in several hundred points looks like nothing, and it's impossible to see the difference between...
6 Feb 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
3 Dec 2021 by Karamveer singh 2021
I have managed to implement the chart using the code attached below - Click of see already implemented chart I want to alter the code, so that I can have this light orange bar in the background of every bar in the chart- Want to achieve this...
3 Dec 2021 by phil.o
You may find that SO post useful: javascript - Chartjs multi dimensional bar chart - Stack Overflow[^]
26 Nov 2021 by Winnie Ee
I'm learning to create combo bar(double bar) chart using JSON data API and AJAX. For my y-axis, I plan to use NumberOfPerson of each signage_id(1001 and 1002) in each date , x-axis will be date. I will only use ThisMonthData in JSON file to...
27 Sep 2021 by Richard Deeming
Stacked Bar Chart | Chart.js[^]
5 Sep 2021 by rachu223
Hello Everybody,We have created dynamic column chart using Microsoft word interop. Chart is generated successfully but sometimes it loads fresh chart or sometimes it takes data itself and generate chart with dummy data.Our code is as below. object bookmarkName =...
5 Sep 2021 by 依建 Lǐ Jiàn林 Lín
//Create an instance for word app Microsoft.Office.Interop.Word.Application winword = new Microsoft.Office.Interop.Word.Application(); //Set animation status for word application winword.ShowAnimation =...
11 Jun 2021 by Member 15100384
This is the code behind for the line chart. It gives output the month in decimal. Example: 4.0 (for month April) I want it to be April only. How to do it? Code.aspx.cs [WebMethod] public static List GetChartData2() { ...
11 Jun 2021 by OriginalGriff
Try: string query = " SELECT DATENAME(MONTH, DATEADD(MONTH, MONTH(DateOfPurchase) - 1, '2001-01-01')) as Bulan, SUM(TotalPaid) AS JumlahJualan "; query += " FROM tblOrders GROUP BY MONTH(DateOfPurchase) ORDER BY MONTH(DateOfPurchase)";
8 Jun 2021 by Ken Guru
Hi, today I suddenly stumbled upon a problem. The format "ddd. dd.MM.yyyy" (and others) of the LabelStyle format of the chart was suddenly displayed completely wrong. Further investigation revealed that the representation is correct in a debug...
7 Jun 2021 by Việt Huỳnh Quốc
I’m a electrical student doing my graduation thesis on “MONITORING BUILDING ELECTRICTY REALTIME USING GOOGLEMAP JAVASCRIPT API” So what I want to ask is that what code should I use so that everytime I click on a marker (which has a specific key...
5 Jun 2021 by Riddhi Dua
I have this code,which makes a static bar graph, but i need to pass these values dynamically from a JSON File. So I found this code online: new Chart(document.getElementById("bar-chart"), { type: 'bar', data: { labels:...
29 Apr 2021 by AO1411
Hi, I need to display multiple lines of data on a javascript chart. I successfully display the chart, but for some reason the label just isn't displaying. I have tried multiple examples but I don't find exactly what I need to do. What I have...
29 Apr 2021 by Member 13432855
For multi line chart in MVC using chart.js (dynamic) Create a Class LabelPoint, Reference your X and Y points on the graph so the data looks something like this [ { Label : "ABC" , DataPoint :[ { X: '222' , Y :60 } ] } ] It will be an...
22 Apr 2021 by Angelo Cresta
.NET 5 version of dotnet/winforms-datavisualization
6 Apr 2021 by gacar
How to disable labels on x-axis and y-axis in amcharts V4 . Thanks amcharts — ImgBB[^] What I have tried: I deleted this line then deleted my tooltip also chart.cursor = new am4charts.XYCursor(); and tried this chart.AxisLabel.disabled...
6 Apr 2021 by gacar
I found solution: var dateAxis = chart.xAxes.push(new am4charts.CategoryAxis()); var valueAxis = chart.yAxes.push(new am4charts.ValueAxis()); valueAxis.cursorTooltipEnabled = false; dateAxis.cursorTooltipEnabled = false;
6 Apr 2021 by Richard Deeming
How about consulting the amCharts 4 Documentation[^]? Maybe try setting the disabled property on the relevant AxisLabel[^]?
31 Mar 2021 by Arctype SQL
Easily deploy PostgreSQL pod in Kubernetes
24 Feb 2021 by gacar
I am tring to using ApexChart, but i couldnt update series on chart. How can i update series data? Thanks
21 Feb 2021 by Member 15079730
I am using Asp.NET Mvc frame work. WIth my code I am trying to show data week wise on Chart. I am fairly new to Chart, and also new to GroupBy Week Wise Data. Kindly share yous help so that I can generate Report for Data as per Week
12 Jan 2021 by cgprakash
Hi, I need to retrieve data from MySQL tables and to retrieve as follows: ['Years', 'January', 'February', 'March','April','May', 'June','July', 'August', 'September','October','November','December',{ role: 'annotation' }], ['2012', 10, 24, 20,...
12 Jan 2021 by Richard Deeming
Something like this should work: SELECT Years.`Year`, (SELECT COUNT(1) FROM YourTable As m WHERE Year(m.join_date) = Years.`Year` And Month(m.join_date) = 1) As `Jan`, (SELECT COUNT(1) FROM YourTable As m WHERE Year(m.join_date) =...
9 Jan 2021 by syed_eer
Quote: I have an Array of objects with 3 elements in each object and this Array is coming from database in JSON format, one of the Array elements is an amount. I have another Array of colors (as shown in the second image) and I want these colors...
9 Jan 2021 by Gerry Schmitz
You've given a list of requirements; and no work. Perhaps start by "learning SQL"; so you can "query" how many joined for a given year and month. Then you "pivot" the results; adding little vertical bars between the results as "delimiters" ......
9 Jan 2021 by Gerry Schmitz
You need to "define" the colors you want and add them with the chart data. How set color family to pie chart in chart.js - Stack Overflow[^] Colors · Chart.js documentation[^]
21 Nov 2020 by Richard MacCutchan
5. Data Structures — Python 3.7.9 documentation[^]
14 Oct 2020 by Member 13650651
Excel.ChartObjects xlCharts = (Excel.ChartObjects)oSheet.ChartObjects(Type.Missing); Excel.ChartObject myChart = (Excel.ChartObject)xlCharts.Add(10, 80, 450, 275); oSheet.Shapes.Item("Chart 1").Top = (float)(double)oSheet.get_Range("A15", "A16").Top; ...
14 Oct 2020 by Paraglide
The Collection starts at index 1 not 0
8 Oct 2020 by Member 14946863
Hi Sandeep, Thanks for your advice, will try again to debug. Andy
8 Oct 2020 by Member 14946863
I prepare the code to generate google chart in vb.net, and there is no error message and no display on the page. can anyone give me some hint? What I have tried: Herewith the script: google.load("visualization", "1", { packages: ["corechart"]...
7 Oct 2020 by Sandeep Mewara
Seems your problem is with below code: success: function (r) { var data = google.visualization.arrayToDataTable(r.d); data.addColumn('string', 'SelectedDate'); data.addColumn('number', 'Line'); ...
22 Sep 2020 by ynjay
I'm trying to use a library called flowy which is a drag and drop flowchart but I'm having trouble outputting flowchart data from a data object. I see on the github page flowy.output(); and flowy.import(output) but I'm havimg trouble...
21 Sep 2020 by auto9817
This is probably the most wanted question I think if you are using the Dot Net Chart Control. I searched on many Q&A sites but I still have not find an answer. I have about 6 to 7 chart areas alinged in one chart. I allowed the horiozontal...
5 Aug 2020 by Member 14898617
In my winforms app i have created a dataset from Trial.Accdb database & in it i have added a Scalarquery() which return count of 1 particular column , now i want to use this query as data-source to show as a chart in my winform .Please help me...
2 Aug 2020 by Sandeep Mewara
I see the following works fine: var ctx = document.getElementById("myChart"); var myChart = new Chart(ctx, { type: 'scatter', data: { datasets: [ { label: 'Chart 1', data: [{x: 1, y: 2}, {x: 2, y: 4}, {x: 3, y:...
2 Jul 2020 by winsderlich@yahoo.fr
hello i want to draw i pie chart with chartjs.the problem is that the chart is not displayed on my html page and when i inspect and i go to console i have no error. i am not understanding what went wrong.Please does someone have an idea ...
29 May 2020 by #realJSOP
Once the line color is set in a line chart, you can't change it based on the value of a data point. No chart library that I'm aware of is going to let you do it. You have two options: 0) create another line (a different color from your data...
29 May 2020 by Member 14637786
I have a single dataset for line chart and I need to conditionally color the line based on Y value to show if thresholds are exceeded (from both top and bottom). And I can't figure out a proper approach to do so and I start to think that might...
28 May 2020 by manasa anandi
Stacked column chart is not working in asp.net chart i am looking for the below output 1. For Actual and unavaialbel_Actual columns the charttype should be stakced column 2. For Budget column the chart type should be column What I have...
28 May 2020 by phil.o
It all depends on what you mean by 'not working'. Maybe you just need to treat Y values as double, instead of string? foreach (DataRow r in initialDataSource.Rows) { series.Points.AddXY("Actual", double.Parse(r["Actual"].ToString())); ...
16 Apr 2020 by DerekT-P
This is explained in Google's documentation. Check out the documentation for any tool you're using first before asking in online fora. I've never used Google's ColumnChart object but found the documentation in under a minute. Here you go:...
16 Apr 2020 by Maideen Abdul Kader
Hi Pls help me to change color of each column in column chart Below code works fine in only one color. I have 12 month. How to change the color of each month Pls advice me Thank you. maideen What I have tried: var...
5 Apr 2020 by goo hey
im trying to build a candlestick graph using javascript and for my graph to be read correctly i need to convert data(object) to a long array in my code any help with that? google.charts.load('current', {'packages':['corechart']}); ...
27 Mar 2020 by Richard Deeming
Doughnut & Pie · Chart.js documentation[^]: For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each. You also...
14 Mar 2020 by Member 11866893
I have an access table with 100 students with Name1, Wins, Losses fields. I would like to display their wins and losses in a chart or at least something that looks better than a datagridview. I tried and with test data 35 students look awful in...
14 Mar 2020 by OriginalGriff
We really can't help you here: we have no idea what your data looks like, or what would "Look nice" to you using it - or even what you want the display to emphasise or reveal (which is what charting is all about: giving a graphical representation...
5 Mar 2020 by syed shanu
How to draw our own Bubble chart using ASP.NET Core Blazor Web Application using HTML5 Canvas
16 Feb 2020 by Member 13236430
I m stuck in the same problem if you have the solution please share it with me
16 Feb 2020 by Sarvesh Kumar Gupta
Hi,I am using ASP.Net Chart control, For that I run an exe and used this @ DotNet page. This is working fine on Local machine or development machine.Then I published the same on my Server, changes made in web.config according to Local system and run the same exe. When I run the application...
6 Feb 2020 by Member 14190053
hello , is there a free gantt chart/scheduler control or library for .NET (similar to the gantt chart in microsoft project ) that I Can use in developing my project c#? I need to see a gantt chart in the main form What I have tried: I tried to search for google but all the library I found...
6 Feb 2020 by phil.o
c# gantt opensource[^] This page presents you with several open source solutions. You may try some of them and see whether there is one which fits your project.
19 Nov 2019 by Member 13974276
The flot pie chart is working fine in normal desktop view but it is broken in responsive view and in mobile devices. Please check the images below Desktop view[^] In mobile device and responsive view[^] What I have tried: I tried applying CSS, updated plugin from GitHub but didn't help....
26 Sep 2019 by PmJN
Hi Team, I am trying to create a chart based on my datagrid. My datagrid contains bound and unbound columns, i have succesfully been apple to display the bound columns in the chart and unfortunately not been able to do the same for the unbound columns. i have read How to create a pie chart...
20 Sep 2019 by Maciej Los
As per documentation[^] chart control accepts only one datasource type of datatable, dataview, etc. So, if you want to bind data to a chart object, you have to re-write bounded and unbounded data from datagridview to any of object which is acceptable as a chart datasource (for example: datatable).
3 Sep 2019 by phil.o
I guess you have to activate the sheet programmatically then: Worksheet.Activate method (Excel)[^]
3 Sep 2019 by Member 14575813
getchart element function in excel vba code not return data until the sheet containing the embedded chart activated once What I have tried: Private Sub Image3_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) On Error Resume Next Const...
26 Apr 2019 by Patrice T
Quote: How to create graph in PHP First of all, php is server side language, it is used to prepare page that will be sent to client browser. JS and html are client side. There is basically 3 ways to make a graph in an html page. - The canvas which is manipulated on client side by some JS code....
26 Apr 2019 by Member 14314841
How to implement a graph in php. Using Google chart it may be possible But it's in javascript code. Is there any library file are available in PHP for creating a graph ? What I have tried: I tried google chart but it's in javascript .
26 Apr 2019 by MadMyche
Separation of Concerns comes into play here. The Chart is presentation layer and should be one of the last things to do; easiest way to do it would be via JavaScript on the actual webpage. PHP is server-side, and will play the roles of the Business Layer as well as the Data Layer. So how do...
25 Apr 2019 by Christian Graus
Why do you keep asking how to do things badly?
25 Apr 2019 by Member 14314841
How to implement Graph in PHP.Using google chart is possible to use graph.But it's Java script it takes time to load .Its not easy to customize. Is there any library file are available for graph in php ? What I have tried: I tried the google charts in java script.But How to Implement in PHP?
25 Apr 2019 by Christian Graus
PHP runs on the server. Javascript runs on the client and is precisely what you need to use, unless you're determined to generate a static bitmap on the back end and then serve it. I'v never used PHP, but, I imagine it could only do that via a COM object?
4 Apr 2019 by Member 12694392
i have added data into tablix of report viewer which contains data x and y. now i am calculating avg, min, max and sum and dispaying it at last rows of same tablix. the problem arise now, as when i am plotting chart of tablix i am getting unwanted graph of data as well as avg, sum, min and max....
6 Mar 2019 by #realJSOP
The very first thing you must do is performa parameterized query. What that means is creating an array of SqlParameter objects, and passing them to the SqlCommand object. Finally, you can replace all of the hard coded values with the appropriate parameter names, something like this: ...
6 Mar 2019 by Member 10696161
I'm trying create column chart from datagridview which downloads DataSet from database. Is datagridview 2. I've written in public class void loaddata(). As for as chart is concert i wrote by chart() public void class. I want display: XvalueMember : ORDER_NUMBER YvalueMember: TOTAL_TIME There...
1 Mar 2019 by pparya27
I am using Chart.js library for creating charts in my project. I want to set the y-axis minimum value to zero, but on doing so the second dataset starts after after the end of first dataset. What I have tried: Code 1: ...
22 Feb 2019 by jordi_gonzalez
It is working for me: Chart1.DataBind()
22 Feb 2019 by ontheline89
Hello, I am drawing a Chart on Windows Form using C# and chart is using Database Table. Can anyone please tell me, what is the easiest way to refresh the chart as more data is inserted into a database ?
10 Feb 2019 by Code Artist
MSChart Extension 2.2.0 Update with new features
3 Jan 2019 by Fiínek Cahů
Dim dtPieChartData = New DataTable() dtPieChartData.Columns.Add("Datum a čas") dtPieChartData.Columns.Add("Plnění normy") For Each row As DataGridViewRow In DataGridView1.Rows Dim indexCategoryColumn As Integer = 0 Dim indexTotalColumn As Integer...
3 Jan 2019 by Fiínek Cahů
Hello, How can I show values from datagridview columns to chart? I would like to show on x axis column "Datum a čas" and on y axis column "Plnění normy". I did it for textboxes but I dont known how can I do it for datagridview. here is a datagridview: Imgur: The magic of the Internet[^] What...
2 Jan 2019 by Richard MacCutchan
See datagridview columns to chart - Google Search[^]
26 Dec 2018 by OriginalGriff
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here... A very quick search gave nearly half a million hits: simple pie chart c - Google Search[^] Including this Codeproject article: Create Pie Chart Using Graphics in C# .NET[^]...