Comments (11)
Could you provide your chart initialization code? Not sure to understand your case...
If you define chart.MaxValue = 400
, then your February
column should be filled. Now if you define chart.MaxValue = 800
, then your February
column should be half filled (like on your screenshot) and so on.
And by default the MaxValue
is the maximum of all your entry values (here 400
).
from microcharts.
Even if I put the MaxValue to 400, still no result. This is the code I was using:
return new BarChart
{
Entries = new List<Entry>
{
new Entry(200)
{
Label = "January",
ValueLabel = "200",
Color = SKColor.Parse("#266489")
},
new Entry(400)
{
Label = "February",
ValueLabel = "400",
Color = SKColor.Parse("#68B9C0")
},
new Entry(100)
{
Label = "March",
ValueLabel = "-100",
Color = SKColor.Parse("#90D585")
}
},
LabelTextSize = 30,
BarAreaAlpha = 255,
MaxValue = 400
};
from microcharts.
Okay, spotted the error.
I apologize, I'll publish an update very soon. :(
from microcharts.
Okay, I found out what the problem was. The animation was not working properly. For a temporary fix, try this:
BarChart barChart = new BarChart{ IsAnimated = false };
from microcharts.
Sad that you can't use animation.
I just published a new pre-release which include a fix related to MaxValue
.
Is it better now?
from microcharts.
I installed the new pre-release and the problem is still there. I figured that the animation cannot play. When loading is done, it shows only the current frame as following:
Do I need to enable something in my project in order to make the animation play?
from microcharts.
Some news about the maxVlaue? i'm trying to use it with Donut, to show something like:
maxValue = 100%, achieved= 80%, so the graphic fill just 80% of the donut.
from microcharts.
Hum, the use of RadialGaugeChart
is more appropriate in this case for me.
Setting a max value to a donut doesn't make sense to me, imagine your have 2 portions with 60
and 50
and a max value of 100
? Do we have to cut the last portion ?
from microcharts.
that's right, I was trying to use the wrong chart. and if I need to use in Donut form, I just need to use two portions one with the rest of the other, (100% = 1 portion of 80 and other of 20) this will made the chart I need. Thanks!
And a tip: Microcharts is awesome, but maybe it need more documentation, like what attributes and functions each chart have and so on... (if there is a documentation for that, I apologize, because I didn't find)
from microcharts.
Also, there is a Way to show in the chart the MaxValue as a Label or something?
from microcharts.
Closing due to inactivity and apparent resolution. @CalvinNunes if you wish to know about the maxValue label as an option, please start a new issue.
from microcharts.
Related Issues (20)
- [Bug] BarChart is not rendering well in integration with QuestPDF in asp.net HOT 2
- Pie chart doesn't distribute legend evenly on both sides
- [Bug] Unhandled ArgumentNullException rendering charts
- [Feature] Rotation Label HOT 1
- [Question] Can Microcharts.Maui be used on .Net Android project? (not MAUI)
- [Question]Stacked barchart HOT 1
- [Question] Donut/Pie Charts (on Xamarin.Android) : How do I get the correct Colors in the Legend
- .Net 7 compatibility issues with Microcharts.Maui
- [Question] How Can I add Text In the Center Of the Dount Chart?
- Xamarin app is crashing when we scroll on multi line chart on the ListView in iOS version.
- [Bug] Microcharts.Maui 1.0.0 Does not work in .NET MAUI 8 HOT 5
- [Question] transferring a legend
- [Bug] - PieChart not centered HOT 1
- [Question] Exception occured on IOS when use all the Chart ,But it works on windows and Andriod HOT 1
- [Feature]I need to support Chinese HOT 1
- [Question] Maui support with Microsoft.Maui.Graphics instead of SkiaSharp HOT 1
- [Bug]Getting Target error when Targeting Maui App to .net 7.0 HOT 2
- [Question] Does Microchart support draw chart at live time HOT 1
- Label value text is not clear while updating ?!
- [Bug] Microcharts.IOS namespace is missing when I upgrade Xamarin.iOS to .net8.0-iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microcharts.