MCPcopy Create free account
hub / github.com/CoderOpen/waimai / drawToolTipSplitArea

Function drawToolTipSplitArea

front/components/u-charts/u-charts.js:1890–1902  ·  view source on GitHub ↗
(offsetX, opts, config, context, eachSpacing)

Source from the content-addressed store, hash-verified

1888}
1889
1890function drawToolTipSplitArea(offsetX, opts, config, context, eachSpacing) {
1891 var toolTipOption = assign({}, {
1892 activeBgColor: '#000000',
1893 activeBgOpacity: 0.08
1894 }, opts.extra.tooltip);
1895 var startY = opts.area[0];
1896 var endY = opts.height - opts.area[2];
1897 context.beginPath();
1898 context.setFillStyle(hexToRgb(toolTipOption.activeBgColor, toolTipOption.activeBgOpacity));
1899 context.rect(offsetX - eachSpacing / 2, startY, eachSpacing, endY - startY);
1900 context.closePath();
1901 context.fill();
1902}
1903
1904function drawToolTip(textList, offset, opts, config, context, eachSpacing, xAxisPoints) {
1905 var toolTipOption = assign({}, {

Callers 1

drawColumnDataPointsFunction · 0.85

Calls 1

hexToRgbFunction · 0.85

Tested by

no test coverage detected