F
Frank & Pam Hayes
I have created a short VBA macro that reads x and y data from a spreadsheet,
where every row represents a new series. Besides the x and y data colums, I
also have columns that specify the size of the marker, the markerstyle, and
the foreground and background colors. I have adapted some of John
Walkenbach's code to label each of the datapoints using .name.
The x axis is basically an integer 1 to 5 and the y axis is a value like
price or variable margin. There usually are multiple datapoints on any given
integer on the x axis. For example, I may be plotting the price that a
customers get in three different countries (US, Canada, and Mexico). I
arrange all my data items with the x value equal to 1 (for the US), 2(for
Canada) and 3(for Mexico) along with the corresponding y value equal to the
price that customer receives.
Ploting this results in the graph I want to see, except with 1, 2 and 3 as
the category labels for the x axis. I would like to be able to change the x
axis label to US, Canada, and Mexico but still keep my x values at 1, 2, and
3. I also want to do this within the VBA routine where the other
seriescollection information is determined.
Please note ... each datapoint is its own series. Any ideas?
Thanks
Frank
where every row represents a new series. Besides the x and y data colums, I
also have columns that specify the size of the marker, the markerstyle, and
the foreground and background colors. I have adapted some of John
Walkenbach's code to label each of the datapoints using .name.
The x axis is basically an integer 1 to 5 and the y axis is a value like
price or variable margin. There usually are multiple datapoints on any given
integer on the x axis. For example, I may be plotting the price that a
customers get in three different countries (US, Canada, and Mexico). I
arrange all my data items with the x value equal to 1 (for the US), 2(for
Canada) and 3(for Mexico) along with the corresponding y value equal to the
price that customer receives.
Ploting this results in the graph I want to see, except with 1, 2 and 3 as
the category labels for the x axis. I would like to be able to change the x
axis label to US, Canada, and Mexico but still keep my x values at 1, 2, and
3. I also want to do this within the VBA routine where the other
seriescollection information is determined.
Please note ... each datapoint is its own series. Any ideas?
Thanks
Frank