I’m afraid you can’t. If you stretch the XAxis then all the calculations for the XAxis will be wrong. The XAxis must be the same size as the Viewport.
What I suggest is – if you want to simply fill the four black squares with colour, take a look at our Xaml Styling application. You need to colour the SciChartSurface.Background one colour (e.g. purple) and set the SciChartSurface.GridLinesPanel to another colour (black).
That’s the best we can suggest I’m afraid.
Please login first to submit.