【发布时间】:2019-05-04 21:26:01
【问题描述】:
但没有成功将底角设置为圆角,
路径元素代码:
path = 'M ' + points[0][indexX] + ',' + (points[0][indexY] - 7) + ' ' +
'L' + points[1][indexX] + ',' + (points[1][indexY] + bar_radius) + ' ' +
'Q' + points[1][indexX] + ',' + points[1][indexY] + ' ' + (points[1][indexX] + bar_radius) + ',' + points[1][indexY] + ' ' +
'L' + (points[2][indexX] - bar_radius) + ',' + points[2][indexY] + ' ' +
'Q' + points[2][indexX] + ',' + points[2][indexY] + ' ' + points[2][indexX] + ',' + (points[2][indexY] + bar_radius) + ' ' +
'L' + points[3][indexX] + ',' + (points[3][indexY] - 7) + ' ' +
'z';
d="M 44.2,291 L44.2,261.42857142857144 Q44.2,259.42857142857144 46.2,259.42857142857144 L57.800000000000004,259.42857142857144 Q59.800000000000004,259.42857142857144 59.800000000000004,261.42857142857144 L59.800000000000004,291 z"
【问题讨论】:
标签: javascript css d3.js svg c3.js