We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Series spacing

Thread ID:

Created:

Updated:

Platform:

Replies:

118865 Apr 17,2015 12:48 AM UTC Apr 18,2015 05:21 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
Ken Ross
Asked On April 17, 2015 12:48 AM UTC

Hello,

I created a chart with three series, each having only one data point. The reason for this is that I wanted each bar to have a different color and I couldn't find a way to do that with all three data points being part of one series.

The challenge I have now is that there is a LOT of space between each of the bars, which looks weird because the bars end up being fairly thin - probably 1/3 as wide as the blank space between them. What I'd like to do is have roughly the same spacing as if all data points were part of one series; I'd like to remove the spacing between the series.

Thanks for your help.

Ken

Yuvaraj Palanisamy [Syncfusion]
Replied On April 17, 2015 12:34 PM UTC

Hi Ken,

We would like to let you know that we can customize the spacing between two segments by using the Spacing property for bar series, we have also prepared a sample for your requirement. Please find the sample from the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/118865/SimpleSample-425753218.zip

Please let us know if you have require further assistance on this.

Thanks,
Yuvaraj P

Ken Ross
Replied On April 17, 2015 02:26 PM UTC

Thanks for the reply and sample. Unfortunately, this example shows how to control the spacing between "bars" in the same series, but not the spacing between multiple series.

Your sample may allow me to change back to using a single series since you're showing a different color for each bar. In your sample you use a color "Palette" with a value of "Metro"; are there other palettes pre-defined? If so, is there somewhere I can look to see what colors they represent? More importantly though, how can I define a custom palette so that I can control the colors used?

Thanks again.

Ken

Suresh B [Syncfusion]
Replied On April 18, 2015 05:21 AM UTC

Hi Ken,

 

Currently, predefined Metro brushes only available for different colors, also we would like to let you know that you can customize the colors using CustomBrushes property. We have prepared the sample for your reference, please find the sample from following link,

 

Sample: http://www.syncfusion.com/downloads/support/directtrac/137936/SimpleSample-1785489558.zip

 

Please let me know if you need any further assistance.

 

Regards,

Suresh B

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;