Data Binding
Properties
Datamap
const salesData = [
{ product: "Shirts", sales: 2544, cost: 1945 },
{ product: "Hats", sales: 1439, cost: 1392 },
{ product: "Gloves", sales: 3849, cost: 2964 },
]
const chart = new wire.highcharts().render("#chart", {
type: "bar",
data: salesData,
datamap: {series: ["sales", "cost"], categories: "product"}
});Series
Last updated
Was this helpful?