Changing Chart Line Colour using ArcPy

780
1
02-19-2020 02:53 AM
KatieJ
by
New Contributor

I have a list of symbol colours which I am using to style my AOI polygons. I would like to create a line graph related to these AOIs with the lines being the same colours.

How do you do this in arcpy?

This is what I have so far:

c = arcpy.Chart('{}'.format(final_results.name))
c.type = 'line'

for aoi in aois:
        c.xAxis.field = '{}_Dates'.format(aoi)

c.yAxis.field = list(aois)
c.xAxis.title = 'Dates'
c.yAxis.title = 'Change'

c.line.aggregation = 'MEAN'
c.line.timeIntervalSize = 1

c.line.timeIntervalUnits = 'DAYS'

c.line.trimIncompleteTimeInterval = False

c.addToLayer(table)

0 Kudos
1 Reply
TimSemmelhaack
Occasional Contributor
0 Kudos