microcharts-dotnet / microcharts Goto Github PK
View Code? Open in Web Editor NEWCreate cross-platform (Xamarin, Windows, ...) simple charts.
License: MIT License
Create cross-platform (Xamarin, Windows, ...) simple charts.
License: MIT License
Hello,
I need to handle null values on linechart... I don't want to draw a point on 0... i want make a invisible point with the average of the last valid point and the next valid point... is it possible?
Will be renderers with bindable properties for XF?
Is it possible to use Microcharts also when data has to be dynamically added to a chart, instead of statistics-like static data ? For instance if new data comes asynchronously from a WebService, more or less cyclically. Are there any samples for this scenario available ?
When I have a large amount of data the labels and bars overlap .. a zoom in out option would help if it exist
Labels are cut off - any way you can add rotating / wrapping labels for the data points?
Hello!
There is a way to specify the location to show the label?
For example, if I use a RadialGauge and my label value or text is big, it goes over the chart graphic.
So, is there a way to choose if I want the label in the top, bottom, left, right of the graphic? Or something similar to that that can help me?
In the new pre-releases forms package including 0.80pre to 0.83pre, doing a simple chart based on the GitHub example like
chartView.Chart=new BarChart() { Entries = entries };
would throw the set_chart method not defined error. the same code works well in 0.62. can't test it in 0.70/0.71 due to .net compatibility errors.
Project Type: Native Android & iOS (not forms)
I'm trying to add Microcharts to a "Class Library (Legacy Portable)" project, but the latest version (0.7.0) won't install because it's not compatible. However, 0.5.2 installs fine. .Net Standard is the future, so I'd like to ditch Legacy Portable, but my project is structured around ReactiveUI and the latest stable version (7.4.0) is not .Net Standard compatible.
EDIT: (9/19/2017)
I found this ReactiveUI link that solves my problem: https://reactiveui.net/docs/getting-started/netstandard
Regardless, it may worthwhile to add support for Portable Legacy, since libs are still in the process of migrating to .Net Standard.
Thank you for this simple, yet quality package!
Implementing a donutChart in my android application and I'm getting an invalid Cast exception error all of a sudden after it worked fine before. What could be the issue?
Screen shot attached.
Error is occurring on:
chart = new DonutChart(){Entries = chartSeries };
chart series is Entry array:
chartSeries = new Microcharts.Entry[] { new Microcharts.Entry (A) { Label = "100-75", ValueLabel = MakeAPercentage(A, total), Color = SKColor.Parse("#00D83E") }, new Microcharts.Entry(B) { Label = "75-50", ValueLabel = MakeAPercentage(B, total), Color = SKColor.Parse("#64BCFF") }, new Microcharts.Entry(C) { Label = "50-25", ValueLabel = MakeAPercentage(C,total), Color = SKColor.Parse("#FFD64A") }, new Microcharts.Entry(D) { Label = "25-0", ValueLabel = MakeAPercentage(D,total), Color = SKColor.Parse("#D30D1B") }
If you put into appveyor this is easy to do like I do here: https://github.com/jamesmontemagno/FloatingActionButton-for-Xamarin.Android/blob/master/FloatingActionButtonForms.nuspec
else you would have to just match up the number manually.
Hello there, I'm using Microchart for Xamarin.Forms. Great tool so far! However, I found an interesting bug:
According to the tutorial, the max value will become the value of the chart with the highest value. In my case, the max value of the chart is that divided by 2. If I increase the 'MaxValue' property to 400, it still does not give me the desired max value.
Is this a known bug? Am I doing something wrong in my code? Please let me know. I'm using 0.8.1-pre.
I want to make the Microcharts clickable and get the clicked portion data. Is it possible?
Hello, i'm using your Nugget to create some nice looking charts, but the Donut Chart in Portrait mode is a little too big for the screen and it also overlaps the text.
I could use landscape (and I do) but I'm... "Asked" for it to work on Both orientations. Is there a way to make the donut chart smaller?
I seem to be getting this error in my project even though I have both Microcharts and Microcharts.Forms included in my project. I'm using version 0.8.0-pre for both. Sorry if this isn't an actual issue.
EDIT: Fixed it by upgrading to 0.8.2-pre.
What api are you using in Xamarin.Forms that requires for you to target the latest version?
Any plans to support a chart title, x-axis label, and y-axis label? I do not see a way to add these.
Entry exists in both Xamarin.Forms and Microcharts namespaces, which confuses users.
Hello,
Is it possible to make a stacked bar chart with Microcharts ?
Hi,
I followed few sites and trying to achieve Charts with help of Xamarin Forms in TIZEN but no luck,
Could you please let me know.
My Code 👍
https://developer.tizen.org/forums/tizen-.net/how-use-microcharts-tizen
Error Log:
` this.chartView.Chart error: error: member reference type '__CrossTemplate1.TabPage1 *' is a pointer; did you mean to use '->'?
error: member reference type 'Microcharts.Forms.ChartView' (aka '__Microcharts.Forms.ChartView *') is a pointer; did you mean to use '->'?
error: no member named 'Chart' in '__Microcharts.Forms.ChartView'
error: 3 errors parsing expression
`
Thanks in advance,
Vamsi K
Microcharts is absolutely gorgeous and wonderful, however when I attempt to put it on a page along with any other View-based element (Label, ScrollView, Grid, etc.), the chart becomes invisible.
For example:
<forms:ChartView x:Name="ServicesChart" HeightRequest="50" />
will show perfectly fine, however if my file has this:
<forms:ChartView x:Name="ServicesChart" HeightRequest="50" /> <Label>Test</Label>
the chart is nonexistent (without height or width) and I see the label displayed at the top of the page.
Likewise when I add a ScrollView, Grid, or other View-based element to the page.
Hey there!
Thanks for this great library. I was trying to change the LineSize
attribute of the RadialGaugeChart
type and i experienced that whenever i set it to a small size, something like 10
, i can't resize the whole chart. So if i only got one entry the chart will appear really small and only gets bigger if i increase the line size.
What i want to achieve is a big chart with a thin line. Any ideas?
Best regards
Since there's no (easy to find) information detailing the differences between the nuget packages Microchart
and Microchart.Forms
, I think it'd be very useful to rename Microchart.Forms
to Microchart.XamarinForms
.
Could not install package 'Microcharts.Forms 0.7.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Hi fellows, I am new in Xamarin framework and currently using Xamarin.Forms to create an app with the Target Framework PCL4.5 profile 111. I have installed Microcharts.Forms nuget package and done the setup.
When I debug on iOS platform the chart generated perfectly, but on android platform, it crashes and display the following error.
It is about something unable to find the assembly file. Can I use some help? Thx alot!
P/S: I am using Microcharts.Form v0.6.2, and I am unable to update to latest 0.7.1 due to I got an error saying "Package Microcharts.Forms 0.7.1 is not compatible with portable45-net45+win8+wpa81 (.NETPortable,Version=v4.5,Profile=Profile111). Package Microcharts.Forms 0.7.1 supports: netstandard1.4 (.NETStandard,Version=v1.4)"
Hi, I followed the steps on Quickstart section and I get this error when I try to run the application:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
any suggestions???
Would it be possible to have a null value, the reason is I want to show every hour of the day (or day of week etc) but I might not have a value for that hour. I still want to see the label but the chart would just bypass showing a bar, dot etc
Do work it with PCL Xamarin Forms Solution?
Does Microcharts have mobile touch support to view data? e.g.( touch a actual point and the data is displayed over it)
We chose MicroCharts.Forms 0.6.2 because there is an issue of dependencies on 0.7.0
Xamarin.Forms 2.3.4.267
SkiaSharp 1.59.1
Cf: https://github.com/netapau/HeyMicrochart
https://github.com/netapau/HeyMicrochart/blob/master/IOException.txt
Hi,
pre-0.8.3 installed
The Code which works for USB connected deployment is not working in Xamarin Live player.
It gives System.IndexOutOfRangeException in Entries property.
I was trying to install the Microcharts nuget package in VS2017, and it failed with the following error message:
Restoring packages for \\Mac\Home\Developer\UwpApps\Microcharts\Microcharts.csproj...
Cycle detected.
Microcharts -> Microcharts (>= 0.7.1).
Package restore failed. Rolling back package changes for 'Microcharts'.
Time Elapsed: 00:00:00.8877490
========== Finished ==========
I tried installing Microcharts on the following configurations VS versions:
I also tried installing Microcharts 0.8.3-pre, but I get the same error message.
Hi @aloisdeniel,
First of all, congratulations for the library. Great work!
I started trying it to be able to talk about it during the next event in my community.
I created Xamarin.Forms projects but I did not find the binding for Entry object (next ChartEntries).
I thought about creating a new custom object for every chart available.
This is an example of a code, what do you think?
public class MicroDonutChart : Microcharts.Forms.ChartView
{
public MicroDonutChart()
{
Chart = new DonutChart();
}
public IEnumerable<Microcharts.Entry> ChartEntries
{
get { return (IEnumerable<Microcharts.Entry>)GetValue(ChartEntriesProperty); }
set { SetValue(ChartEntriesProperty, value); }
}
public static readonly BindableProperty ChartEntriesProperty =
BindableProperty.Create("ChartEntries",
typeof(IEnumerable<Microcharts.Entry>),
typeof(IEnumerable<Microcharts.Entry>),
null,
propertyChanged: HandleChartEntriesChanged);
static void HandleChartEntriesChanged(BindableObject bindable, object oldValue, object newValue)
{
((MicroDonutChart)bindable).Chart.Entries = (IEnumerable<Microcharts.Entry>)newValue;
}
}
XAML part:
<local:MicroDonutChart ChartEntries="{Binding Path=ChartEntries}" HeightRequest="180"/>
It would be cool if there's an option to add animation on appearing. :)
The project need information about code conventions/contributing guide.
I can help if you tell me what is the plan.
This Microcharts looks very good, but I want to add some gestures on it, such as tap、pinch、pan, which can change source and charts dynamiclly.
Thank you for replying!
Hello,
I installed Microcharts.Forms to my project and tried to add in a content page "<microcharts:ChartView x:Name="chartView" />" as in the example, but when I run on iOS I get the following error: "Failed to resolve assembly:'Microcharts.Forms, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null".
Version 0.7.1 for Microcharts.Forms and I am using Xamarin Live Player.
Thanks
Hey there, I'm currently localizing an application and I've noticed that there isn't any way for a user to pass in a typeface for chart labels. Making it impossible to localize for languages like Chinese.
Request:
Please expose Typeface properties for your chart controls to apply typefaces to labels.
Can anyone point me in the right direction.
Error using the LATEST version
<package id="Microcharts" version="0.8.3-pre" targetFramework="portable45-net45+win8+wpa81" />
<package id="Microcharts.Forms" version="0.8.3-pre" targetFramework="portable45-net45+win8+wpa81" />
Xamarin.Forms.Xaml.XamlParseException: Position 31:18. Type microcharts:ChartView not found in xmlns clr-namespace:Microcharts.Forms;assembly=Microcharts.Forms
at Xamarin.Forms.Xaml.CreateValuesVisitor.Visit (Xamarin.Forms.Xaml.ElementNode node, Xamarin.Forms.Xaml.INode parentNode) [0x0024b] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Xaml\CreateValuesVisitor.cs:92
at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x000ab] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Xaml\XamlNode.cs:149
at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Xaml\XamlNode.cs:143
at Xamarin.Forms.Xaml.RootNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00078] in C:\
To make a chart ( X: time 9:50 , 9:51, 9:52 , 9:54, 9.58....... ) , ( Y: value , 0,1,2,3,4 .. )
Is it possible ?
Hi
I created a new cross platform project, updated the nugets, tried to install Microcharts.Forms.
I get following error :
Severity Code Description Project File Line Suppression State Error Could not install package 'Microcharts.Forms 0.7.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Hi,
I have created a .Net standard forms project and included 'Microcharts.Forms' from nuget in all projects in solution.
I can't able to get access of 'Entry' and other Chart types (like LineChart, BarChart, PointChart ...). Is it supported for .Net standard projects or did i miss something?
Can i rotate entry value and label to show horizontal
Hello,
Is it possible to make in LineChart two or more lines in chart?
Something like this: https://i.stack.imgur.com/axSKb.png
When use Arabic characters as titles, a square appears in place of the title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.