Highcharts
Docs HomeProduct SiteSupport
  • Highcharts for WireBootstrap
  • Installation
  • Configuration
  • Data Binding
  • Events
Powered by GitBook
On this page

Was this helpful?

Events

PreviousData Binding

Last updated 3 years ago

Was this helpful?

Highcharts for WireBootstrap extends the class. As such, it inherits all its base events.

The following events are added to Highcharts for WireBootstrap.

Name

Description

pointClick

new wire.highcharts().render("#chart", {
    ...
    events: {
        pointClick: (config) => {
            ...
        }    
    }
});

Data Event

By default, the pointClick event will also trigger a which sends data out to and other data event listeners. The field sent out will be the one(s) specified in the . To override this default behavior, use the eventField property in the binding configuration.

In the example below, the product in the series and its value would normally be sent out in the data event as the triggering the event. However, the eventField tells the component to use the region field instead.

const salesData = [
    { region: "North", product: "Shirts", sales: 2544 },
    { region: "North", product: "Hats", sales: 1439 },
    { region: "South", product: "Gloves", sales: 3849 },
]
const chart = new wire.highcharts().render("#chart", {
    type: "bar",
    data: salesData,
    datamap: {series: ["sales", "cost"], categories: "product"},
    eventField: "region"
});

Raised when a series in the component is clicked. This is triggered internally by . The even will also raise a passing the standard WireBootstrap .

wire.ui.component
select data event
DataSets
categories data map
cell
Highcharts native series point click event
user event data
data event