Chart inside scroll view

I put two chart in the scroll view put i not able to scroll to bottom to view my label, is there any example that can show me?

3 Replies

MP Michael Prabhu M Syncfusion Team October 19, 2018 06:04 AM UTC

Hi Wei Chun, 

Greetings from Syncfusion, we have prepared a simple sample based on your requirement and it can be downloaded from the below link. Also, we like to let you know that by default chart doesn’t have desired size, so we have to manually set the size for chart if we put inside any view. 

Thanks, 
Michael 






AD asolute dev October 19, 2018 06:57 AM UTC

Do you have any example on assigned different color for each bar in bar chart  with different entity name?


MP Michael Prabhu M Syncfusion Team October 19, 2018 09:30 AM UTC

Hi Wei Chun, 
 
We can achieve this requirement with the help of CustomBrushes in ChartColorModel. We have prepared a simple sample for your requirement and it can be downloaded from the below link. 
 
 
Code snippet [XAML] 
 
<ContentPage.Resources>
    <ResourceDictionary>
        <chart:ChartColorCollection x:Key="Colors">
            <Color>Red</Color>
            <Color>Gray</Color>
            <Color>Blue</Color>
            <Color>Maroon</Color>
            <Color>Pink</Color>
        </chart:ChartColorCollection>
    </ResourceDictionary>
</ContentPage.Resources>

<
chart:ColumnSeries.ColorModel>
      <chart:ChartColorModel  Palette="Custom" CustomBrushes="{StaticResource Colors}" />
</chart:ColumnSeries.ColorModel>
 
 
   
Please refer the below UG link for more details about the ChartColorModel. 
 
 
Thanks, 
Michael 
 
 


Loader.
Up arrow icon