All examples By author By category About

tejaser

linearScale-example

Built with blockbuilder.org

this is an example of linear scale functionality to show how large variation data can be plotted in the limited space available in the chart.

Domain will have minimum and maximum value of data scale will have minimum and maximum value of the space available for chart to be drawn.

refer to d3/d3-scale for more information.

frequently use scales

Continuous scale

d3.scaleLinear() --> continuous normal data

d3.scaleLog() --> in case some data is very small and other are large

d3.scaleTime() --> When working with date and datetime object

ordinal

d3.scaleBand() --> This is used for categorical data