Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Feb 20, 2017
1 parent 04536c9 commit 4f57126
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Source/Charts/Data/Implementations/ChartBaseDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ open class ChartBaseDataSet: NSObject, IChartDataSet
/// [1, 3, 4, 2] will paint [- ---- - ---- ]
open var formLineDashLengths: [CGFloat]? = nil

/// Set this to true to draw y-values on the chart
/// Set this to true to draw y-values on the chart.
///
/// - note: For bar and line charts: if `maxVisibleCount` is reached, no values will be drawn even if this is enabled.
open var drawValuesEnabled = true

/// - returns: `true` if y-value drawing is enabled, `false` ifnot
Expand All @@ -361,7 +363,9 @@ open class ChartBaseDataSet: NSObject, IChartDataSet
return drawValuesEnabled
}

/// Set this to true to draw y-icon on the chart
/// Set this to true to draw y-icons on the chart.
///
/// - note: For bar and line charts: if `maxVisibleCount` is reached, no icons will be drawn even if this is enabled.
open var drawIconsEnabled = true

/// Returns true if y-icon drawing is enabled, false if not
Expand Down
8 changes: 6 additions & 2 deletions Source/Charts/Data/Interfaces/IChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,17 @@ public protocol IChartDataSet
/// [1, 3, 4, 2] will paint [- ---- - ---- ]
var formLineDashLengths: [CGFloat]? { get }

/// Set this to true to draw y-values on the chart
/// Set this to true to draw y-values on the chart.
///
/// - note: For bar and line charts: if `maxVisibleCount` is reached, no values will be drawn even if this is enabled.
var drawValuesEnabled: Bool { get set }

/// - returns: `true` if y-value drawing is enabled, `false` ifnot
var isDrawValuesEnabled: Bool { get }

/// Set this to true to draw y-icon on the chart
/// Set this to true to draw y-icons on the chart
///
/// - note: For bar and line charts: if `maxVisibleCount` is reached, no icons will be drawn even if this is enabled.
var drawIconsEnabled: Bool { get set }

/// Returns true if y-icon drawing is enabled, false if not
Expand Down

0 comments on commit 4f57126

Please sign in to comment.