Dashed lines and number formats
Chart features
- chart.yValueAxis.labelTextScale = 1000: Multiplies y-values in the data by a scaling factor of 1000
- chart.xValueAxis.xLabelFormat = '{mm}/{dd}/{yy}': Sets the date format to display on the x-axis. The x-axis accepts data values as integers in the format yyyymmdd
- chart.xValueAxis.labels.angle = 90: Rotates the x-axis labels such that they are vertical
- chart.yValueAxis.labelTextFormat = '$%0.2f': Describes the formatting of the y-axis; note the addition of the '$' sign
- chart.lines[0].strokeDashArray = (1, 1): Gives the dash pattern of the line, lengths in points, alternating between filled and empty space
- chart.lines[1].strokeDashArray = (6, 2): Gives the dash pattern of the line, lengths in points, alternating between filled and empty space
- chart.lines[2].strokeDashArray = (2, 2, 2, 2, 10): Gives the dash pattern of the line, lengths in points, alternating between filled and empty space