Skip to main content

ScaleType

Namespace: Wisej.Web.Ext.ChartJS3

Assembly: Wisej.Web.Ext.ChartJS3 (4.1.0.0)

Type of scale being employed.

public enum ScaleType

Used by the Type property of the axes. The x axes default to Category and the y axes to Linear.

Example:

// plot values spanning several orders of magnitude.
this.chartJS31.Options.Scales.yAxes[0].Type = ScaleType.Logarithmic;

Fields​

NameDescriptionValue
CategoryLabels are drawn in from the labels array included in the chart data.
LinearThe linear scale can be used to display numerical data. It can be placed on either the x or y axis. The scatter chart type automatically configures a line chart to use one of these scales for the x axis.
LogarithmicThe logarithmic scale is used to display logarithmic data of course. It can be placed on either the x or y axis.
RadialLinearThe radial linear scale is used specifically for the radar chart type.
TimeThe time scale is used to display times and dates. It can be placed on the x axis. When building its ticks, it will automatically calculate the most comfortable unit base on the size of the scale.

Used By​

NameDescription
OptionScalesAxes.TypeReturns or sets the type of scale being employed.
OptionScalesAxesX.TypeReturns or sets the type of scale being employed.