2

Is it possible to make the Chart with one line that will have two styles like on this picture?

chart line example

I tried this, but it always selects only one style.

func strokeStyleByID(thenID: Int) -> StrokeStyle {
        if thenID > 0 {
            return StrokeStyle(dash: [5]) // dashed line for future
        } else {
            return StrokeStyle(dash: [0]) // solid line for past
        }
    }
CosmicTea
  • 90
  • 6

0 Answers0