Skip to content

Instantly share code, notes, and snippets.

Avatar

Pedro Cavaleiro PedroCavaleiro

View GitHub Profile
@PedroCavaleiro
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 = CGPoint.zero
private var maxVisiblePoint = CGPoint.zero