SfChart GetStream issue

Hi,

I'm using SfChart with a Xamarin Forms PCL app.
Everything is fine but I need to export a chart to a byte array.

So I'm trying to use                 

Stream ms = scoreChart.GetStream();

and it works but the chart has a black background while on the app it has a "white" background.

Do you have any suggestion? SaveToImage is not what I need as I want a bytearray.

Regars


3 Replies

LR Lakshmi Radha Krishnan Syncfusion Team November 20, 2017 12:01 PM UTC

Hi Sayed,

Thanks for using Syncfusion products.

We have already fixed the reported issue in our latest version (15.4.0.17). Please download the latest version from the following location.

Link: https://www.syncfusion.com/downloads/evalconfirmation   
Please let us know, if you need further assistance on this.

Regards,
Lakshmi R. 



SS Sayed Seliman November 20, 2017 10:39 PM UTC

Hi,

thank you very much for your support.
Can you please help me to undestand how to make the attached chart more readable?

I mean how to make the first point "more centered" and readable?
How can I also set Y-axis to step every 5 units?



Attachment: Screenshot_20171120233551_761e27df.zip


LR Lakshmi Radha Krishnan Syncfusion Team November 21, 2017 01:08 PM UTC

Hi Sayed,  
 
Thanks for your update. 
   
You can achieve this requirement with the help MinimumMaximum and Interval properties of ChartAxis. Please refer the below code snippet for your reference. 
    
   
<chart:SfChart.SecondaryAxis>
        <chart:NumericalAxis Interval="5" Minimum="3470" Maximum="3490">     
</chart:SfChart.SecondaryAxis>   
   
 
   
You can also use PlotOffset or RangePadding property of ChartAxis to achieve this same requirement. Please refer the below link for more details.  
   
  
We have prepared a sample for this and it can be download from the following location. 
 
  
Please let us know, if you need further assistance on this.  
   
Regards,  
Lakshmi R.  
 
  
  


Loader.
Up arrow icon