954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

VB.Net chart control black background problem

Hi,

I am having problems when generating a chart dynamically. The problem is that sometimes the chart is rendered with a black background and sometimes without.

I have stepped through the code and verifies each number and there are no anomalies or numbers that might cause a problem.

The y values are all doubles to a max of 2 decimal places and I am using the chart.series("").points.databindxy() method. I have tried adding a chart programmatically and also adding a chart using the designer and changing values programmatically. The code is executed on a different thread - could that be the issue?

I have tried to attach screen shots but I always get an upload failed message (regardless of file type).

Does anyone have an explanation as to why it is sometimes rendered with a black background?

Thanks

Richard

--------------------------

Sorry, resolved it now. It's been bugging me for days and moments after posting I realised what it was:

The AxisY interval was set to 1 and with a high y value it meant that there were thousands of vertical grid lines which were bunched together resulting in the black background!

richardh87
Newbie Poster
1 post since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: