Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Draw chart in windows phone 8 or 8.1 without using external library?

How can I can draw a simple chart in Windows Phone 8 or 8.1 without using an external library, I want to use C# + XAML code only.

I searched for a free library to do that on Windows Phone 8.1 (universal app) but I couldn't find any. All libraries I've found supported Windows Phone 8 or 7, not Windows Phone 8.1.

like image 967
Mohammad Diab Avatar asked Aug 11 '14 09:08

Mohammad Diab


Video Answer


2 Answers

I made in answer in this similar question How to do Chart on Windows Phone Universal App

It might be able to help you. Telerik has an API that costs money and Google have a free one where you can get Charts through http requests. Check my reply - you might wanna use one of these. My answer is not about drawing it through XAML / C# which can be quite comprehensive.

To Draw it yourself through code you probably wanna create a Custom Control. Here is a few links to get you started:

  • http://code.msdn.microsoft.com/windowsapps/WPF-Line-Graph-Basics-033dd90e
  • http://msdn.microsoft.com/en-us/magazine/ee291567.aspx
like image 134
Simon Avatar answered Oct 18 '22 18:10

Simon


Using the default tools is very hard, you can use telerik controls, though

like image 1
Shaimaa Fawzy Avatar answered Oct 18 '22 17:10

Shaimaa Fawzy