packages/react-examples/src/react-charting/HeatMapChart/docs/HeatMapChartBestPractices.md
Heatmaps are flexible in nature. The chart can support a minimum 2x2 grid through a maximum of 10x10 grid. The nodes should span and reflow with the overall width and height of your composition.
The user has freedom to either choose a sequential palette or a range of colors that best represent the range of values. For example, AQI values of regions in a country could be represented in shades of green, orange and red based on prescribed health limits of the air quality.
The color palette for a heat map chart is defined by a domain/range combination. The domain consists of values in the chart columns. It is an array of numbers. See domainValuesForColorScale. The range is an array rangeValuesForColorScale of colors in hex format. The graph creates a mapping between each value from domain to range. For all values in the domain, an equivalent interpolation is drawn in the range of color scale. For eg: if the domain is [0,500,900] and range is [green, blue, red], then [0, 500] is mapped in the range [green, blue] and [500, 900] in the range [blue, red].
Use the following formatters based on the type of axis.
xAxisDateFormatStringyAxisDateFormatStringxAxisNumberFormatStringyAxisNumberFormatStringxAxisStringFormatteryAxisStringFormatterThe chart axes support 2 ways of localization.
dateLocalizeOptions for date axis to define target localization. Refer the Javascript localization guide for usage.timeFormatLocale prop. Refer to the Custom Locale Date Axis example in line chart for sample usage.For instructions on how to create date objects to be passed as data points in the chart, see Creating Date Objects For Chart Data | FluentUI Charting Contrib Docsite