Skip to content

Instantly share code, notes, and snippets.


Pedro Cavaleiro PedroCavaleiro

View GitHub Profile
PedroCavaleiro / ColoredLineChartRenderer.swift
Created May 25, 2021
Multi color line (Charts Framework for Swift)
View ColoredLineChartRenderer.swift
class ColoredLineChartRenderer: LineChartRenderer {
// var chartHeight:CGFloat = 0
private var myXBounds = BarLineScatterCandleBubbleRenderer.XBounds()
// added to support the commented "Color Section" code below
// min & maximum visible data geometry coordinate
private var minVisiblePoint =
private var maxVisiblePoint =