Skip to content

Commit 0d7e3ba

Browse files
authored
Merge pull request #31 from KarthikRIyer/data_input
Replace Point type with Pair<T,U>
2 parents 1aba33e + 266306c commit 0d7e3ba

File tree

60 files changed

+8578
-1645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+8578
-1645
lines changed

examples/BarChart/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange)
1616
barGraph.plotTitle = PlotTitle("BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartBackwardSlashHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .backwardSlash)
1616
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartCrossHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph: BarGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .cross)
1616
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartFilledCircleHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .filledCircle)
1616
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartForwardSlashHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var svg_renderer = SVGRenderer()
1313

1414
var plotTitle = PlotTitle()
1515

16-
var barGraph = BarGraph()
16+
var barGraph = BarGraph<String,Float>()
1717
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .forwardSlash)
1818
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1919
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartGridHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .grid)
1616
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartHollowCircleHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var svg_renderer = SVGRenderer()
1313

1414
var plotTitle = PlotTitle()
1515

16-
var barGraph = BarGraph()
16+
var barGraph = BarGraph<String,Float>()
1717
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .hollowCircle)
1818
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1919
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartHorizontalHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .horizontal)
1616
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartHorizontalStacked/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let y1:[Float] = [100,100,220,245]
1212
var agg_renderer = AGGRenderer()
1313
var svg_renderer = SVGRenderer()
1414

15-
var barGraph = BarGraph()
15+
var barGraph = BarGraph<String,Float>()
1616
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, graphOrientation: .horizontal)
1717
barGraph.addStackSeries(y1, label: "Plot 2", color: .blue)
1818
barGraph.plotTitle = PlotTitle("BAR CHART")

examples/BarChartOrientationHorizontal/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, graphOrientation: .horizontal)
1616
barGraph.plotTitle = PlotTitle("BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartVerticalHatched/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let y:[Float] = [320,-100,420,500]
1111
var agg_renderer = AGGRenderer()
1212
var svg_renderer = SVGRenderer()
1313

14-
var barGraph = BarGraph()
14+
var barGraph = BarGraph<String,Float>()
1515
barGraph.addSeries(x, y, label: "Plot 1", color: .orange, hatchPattern: .vertical)
1616
barGraph.plotTitle = PlotTitle("HATCHED BAR CHART")
1717
barGraph.plotLabel = PlotLabel(xLabel: "X-AXIS", yLabel: "Y-AXIS")

examples/BarChartVerticalStacked/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let y1:[Float] = [100,100,220,245]
1212
var agg_renderer = AGGRenderer()
1313
var svg_renderer = SVGRenderer()
1414

15-
var barGraph = BarGraph()
15+
var barGraph = BarGraph<String,Float>()
1616
barGraph.addSeries(x, y, label: "Plot 1", color: .orange)
1717
barGraph.addStackSeries(y1, label: "Plot 2", color: .blue)
1818
barGraph.plotTitle = PlotTitle("BAR CHART")

0 commit comments

Comments
 (0)