What attributes are used to implement custom icons in highgcharts statistical tables?

clipboard.png

clipboard.png

what attributes does this custom icon highgcharts use to implement

Jul.12,2022

the arrowhead is drawn, and it is actually drawn according to the arrowhead style. The following examples are for reference

/**
 * Draw the wind arrows. Each arrow path is generated by the windArrow function above.
 */
Meteogram.prototype.drawWindArrows = function (chart) {
    var meteogram = this;
    $.each(chart.series[0].data, function (i, point) {
        var sprite, arrow, x, y;
        if (meteogram.resolution > 36e5 || i % 2 === 0) {
            // Draw the wind arrows
            x = point.plotX + chart.plotLeft + 7;
            y = 255;
            if (meteogram.windSpeedNames[i] === 'Calm') {
                arrow = chart.renderer.circle(x, y, 10).attr({
                    fill: 'none'
                });
            } else {
                arrow = chart.renderer.path(
                    meteogram.windArrow(meteogram.windSpeedNames[i])
                ).attr({
                    rotation: parseInt(meteogram.windDirections[i], 10),
                    translateX: x, // rotation center
                    translateY: y // rotation center
                });
            }
            arrow.attr({
                stroke: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
                'stroke-width': 1.5,
                zIndex: 5
            })
                .add();
        }
    });
};

refer to the js section of the mixed graph:
https://www.highcharts.com.cn...

Menu