Microcharts icon indicating copy to clipboard operation
Microcharts copied to clipboard

Fill available width (Xamarin Forms)

Open henningms opened this issue 7 years ago • 6 comments

Hi,

I just started playing with Microcharts and trying to put one in a ListView's HeaderTemplate. Looks fine except that I can't get it to stretch horizontally; to make it use the whole available width.

What can I do?

henningms avatar Jan 09 '18 21:01 henningms

I have the same issue, for now I am using WidthRequest property.

mhdtahawi avatar Jan 12 '18 10:01 mhdtahawi

Same issue does not obey the fill parameter

chrisfoulds avatar Feb 12 '18 13:02 chrisfoulds

Same

CarterWilde avatar Apr 14 '18 05:04 CarterWilde

Does anyone know of a fix for this yet? 👍

dannmat avatar Sep 25 '18 10:09 dannmat

Hello! still an issue? if so, please provide all relevant information -> xamarin version, os, os version, microcharts version, and respective code (or at least snippets). Thanks!

Nixon-Joseph avatar Feb 16 '19 04:02 Nixon-Joseph

Still an issue for me!

  • Xamarin Version: Xamarin Forms 3.4.0.1009999
  • OS: Android and iOS (issue on both)
  • iOS Version: 12.1.4
  • Android Version: Android Pie (will get exact version later)
  • Microcharts Version: Latest Stable (0.7.1)

The issue happens with the sample code:

            var entries = new[]
            {
                new Microcharts.Entry(200)
                {
                    Label = "January",
                    ValueLabel = "200"
                },
                new Microcharts.Entry(400)
                {
                    Label = "February",
                    ValueLabel = "400"
                },
                new Microcharts.Entry(-100)
                {
                    Label = "March",
                    ValueLabel = "-100"
                }
            };

            var chart = new BarChart() { Entries = entries };

            this.chartView.Chart = chart;

Thanks!

dannmat avatar Feb 20 '19 14:02 dannmat