Graph, changing item names in legend

546
0
01-09-2013 03:44 AM
AlexMagruder
New Contributor III
I'm having python produce a multi-series graph. How do you change the series name in the legend, the default being Vertical Bar, Vertical Bar1, Vertical Bar2....

Thank you for the help!
arcpy.MakeGraph_management(graphTemplatePath,
                                      '''SERIES=bar:vertical DATA={0}
                                      X=ParkUnit Y=Coverage LABEL=ParkUnit SORT=ASC;
                                      SERIES=bar:vertical DATA={1} X=ParkUnit Y=Coverage;
                                      SERIES=bar:vertical DATA={2} X=ParkUnit Y=Coverage;
                                      SERIES=bar:vertical DATA={3} X=ParkUnit Y=Coverage;
                                      SERIES=bar:vertical DATA={4} X=ParkUnit Y=Coverage;
                                      GRAPH=general TITLE={5}, Total Coverage by Unit;
                                      LEGEND=general TITLE=Year Total Coverage;
                                      '''.format(scratchReport + str(year),
                                       scratchReport + str(year-1),
                                       scratchReport + str(year-2),
                                       scratchReport + str(year-3),
                                      scratchReport + str(year-4),
                                       exoticPlant),"graphTemp")

[ATTACH=CONFIG]20585[/ATTACH]
Tags (2)
0 Kudos
0 Replies