Giter Site home page Giter Site logo

Comments (11)

aloisdeniel avatar aloisdeniel commented on May 22, 2024

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.

GyllionElderen avatar GyllionElderen commented on May 22, 2024

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.

aloisdeniel avatar aloisdeniel commented on May 22, 2024

Okay, spotted the error.

I apologize, I'll publish an update very soon. :(

from microcharts.

GyllionElderen avatar GyllionElderen commented on May 22, 2024

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.

aloisdeniel avatar aloisdeniel commented on May 22, 2024

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.

GyllionElderen avatar GyllionElderen commented on May 22, 2024

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:

capture

Do I need to enable something in my project in order to make the animation play?

from microcharts.

Calvin-2DWeb avatar Calvin-2DWeb commented on May 22, 2024

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.

aloisdeniel avatar aloisdeniel commented on May 22, 2024

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 50and a max value of 100 ? Do we have to cut the last portion ?

from microcharts.

Calvin-2DWeb avatar Calvin-2DWeb commented on May 22, 2024

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.

Calvin-2DWeb avatar Calvin-2DWeb commented on May 22, 2024

Also, there is a Way to show in the chart the MaxValue as a Label or something?

from microcharts.

Nixon-Joseph avatar Nixon-Joseph commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.