AOB
Well-known Member
- Joined
- Dec 15, 2010
- Messages
- 664
- Office Version
- 365
- 2016
- 2013
- Platform
- Windows
Hi all,
I have an XY Scatter chart in XL2007, plotting account balances as a time-series graph.
The problem I'm having is that Excel will always plot straight lines between each data point. This misrepresents the account balance between the data points
(For example, if the account opens at 9am with €100, and receives €50 at 12pm, the balance appears to climb steadily from €100 to €150 between 9am and 12pm, when in fact it should remain at €100 until 12pm and then jump 'vertically' to €150)
As a workaround, I have added some code to automatically insert 'dummy' values immediately prior to each data point, adopting the value of the previous data point, which forces the chart to show a more representative shape.
However, when the number of transactions on a given day is large, this code obviously takes quite a long time to run. If I want to graph over a number of days, the run-time increases exponentially again.
Just wondering if anybody knows of a chart type in Excel which can produce this kind of shape automatically (i.e. no sloping lines, only horizontal or vertical movements) while maintaining the linear time-series nature of the x-axis?
It's been driving me nuts for days as I would have thought this kind of shape would be common for lots of data types where the y value needs to remain constant until the next data point, rather than moving gradually to its next value.
Any suggestions would be very gratefully received!
Thanks in advance
AOB
I have an XY Scatter chart in XL2007, plotting account balances as a time-series graph.
The problem I'm having is that Excel will always plot straight lines between each data point. This misrepresents the account balance between the data points
(For example, if the account opens at 9am with €100, and receives €50 at 12pm, the balance appears to climb steadily from €100 to €150 between 9am and 12pm, when in fact it should remain at €100 until 12pm and then jump 'vertically' to €150)
As a workaround, I have added some code to automatically insert 'dummy' values immediately prior to each data point, adopting the value of the previous data point, which forces the chart to show a more representative shape.
However, when the number of transactions on a given day is large, this code obviously takes quite a long time to run. If I want to graph over a number of days, the run-time increases exponentially again.
Just wondering if anybody knows of a chart type in Excel which can produce this kind of shape automatically (i.e. no sloping lines, only horizontal or vertical movements) while maintaining the linear time-series nature of the x-axis?
It's been driving me nuts for days as I would have thought this kind of shape would be common for lots of data types where the y value needs to remain constant until the next data point, rather than moving gradually to its next value.
Any suggestions would be very gratefully received!
Thanks in advance
AOB