new Simple(params)
Creates simple HTML nodes that can be used with a CIQ.Marker
See Markers tutorials for additional implementation instructions.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | Parameters to describe the marker Properties
|
- Since:
-
- 9.1.0 Added
pinnableparameter, which makes all new markers pinnable. This feature requires js/extras/pinnedMarkers.js, which is part of the ChartIQ Extras Package.
- 9.1.0 Added
Example
var datum = {
type: "circle",
headline: "This is a Marker for a Split",
category: "split",
story: "This is the story of a split"
};
var mparams = {
stx: stxx,
label: "Sample Events",
xPositioner: "date",
x: aDate,
pinnable: true, //Requires ChartIQ Extras Package
node: new CIQ.Marker.Simple(datum)
};
var marker = new CIQ.Marker(mparams);
Methods
-
click(params)
-
Click event handler for simple markers when they are clicked. Adds or removes the marker's pop-up expansion
divto the chart, depending on whether it has already been activated.Parameters:
Name Type Description paramsobject Configuration parameters.
Properties
Name Type Description cxnumber Client x-coordinate of click.
cynumber Client y-coordinate of click.
markerCIQ.Marker Marker that was clicked.
panelCIQ.ChartEngine.Panel Panel where the click occurred.
- Since:
-
9.1.0
-
remove(marker)
-
Hides a marker's expanded text.
Parameters:
Name Type Description markerCIQ.Marker The marker to which this node belongs.
- Since:
-
9.1.0
