Spacing between bars


Author
Message
rich dudley
rich dudley
Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)
Group: Forum Members
Posts: 33, Visits: 76
Are these irregularities between the bars due to your pixel snapping? Is there anyway of dealing with this aside from making everything larger?
https://www.nevron.com/forum/uploads/images/8c620c8e-6e99-4854-b014-c1f4.png

Tags
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Rich,
Yes they are however an easy workaround would be to render the SVG larger in which case the pixel snapping will not be that obvious. We can also add a property to the bar series telling it not to snap bars in which case the SVG export will look good at this size.

Best Regards,
Nevron Support Team


rich dudley
rich dudley
Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)
Group: Forum Members
Posts: 33, Visits: 76
I tried that, and to get something that looked better I had to go up to 400% of my original size.  The image can then be scaled back down once its been converted to vector art, but that causes problems with the font size.  I would really like to be able to turn off pixel snapping, it causes problems and in this situation the output is vector are that shouldn't care about the pixels anyways.  Whats the process for adding a feature like that as you mentioned in your first reply?

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Rich,
We've added two properties to the bar series that allow you to switch off the pixel rounding for x and y coordinates. The properties are - EnableXPixelSnapping and EnableYPixelSnapping, so in your case you need to write:
barSeries.EnableXPixelSnapping = false;

You need to download the latest version from our site in order for this to work...



Best Regards,
Nevron Support Team


rich dudley
rich dudley
Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)
Group: Forum Members
Posts: 33, Visits: 76
You guys are the best! Entirely solved the issue. Maybe something to keep in mind for future releases for those of us who are outputing vector art? I've definitely had some trouble with pixel snapping in other places, its frustrating to be limited by pixels when the output doesn't need to be.  Maybe something like:
NCartesianChart chart = (NCartesianChart)chartControl.Charts[0];
chart.EnablePixelSnapping = false;

Thanks again for being so responsive!

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Thanks Rich,
Regarding the suggestion - it will be difficult to intercept all pixel snapping that occurs currently in Nevron Chart for .NET, however we'll have this feature in mind when we continue to develop the cross platform edition of the control. Thanks again Smile.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search