Commit e8eef3c9 by 李伟康

commit 修改样式

1 parent 6168fdb4
...@@ -361,7 +361,8 @@ page { ...@@ -361,7 +361,8 @@ page {
.type-4 { .type-4 {
.canvas { .canvas {
transform: scale(1.45) translateY(8rpx); // transform: scale(1.45) translateY(5%);
transform: scale(1.45) rotate(-45deg);
transform-origin:center center; transform-origin:center center;
} }
......
...@@ -1894,10 +1894,10 @@ function drawCharts(type, opts, config, context) { ...@@ -1894,10 +1894,10 @@ function drawCharts(type, opts, config, context) {
drawLegend(opts.series, opts, config, context); drawLegend(opts.series, opts, config, context);
drawCanvas(opts, context); drawCanvas(opts, context);
if (opts.categories.length == 4) { // if (opts.categories.length == 4) {
context.rotate(-1 * Math.PI / 180 * 45) // context.rotate(-1 * Math.PI / 180 * 45)
context.translate(-125, 75) // context.translate(-125, 75)
} // }
}, },
onAnimationFinish: function onAnimationFinish() { onAnimationFinish: function onAnimationFinish() {
_this.event.trigger('renderComplete'); _this.event.trigger('renderComplete');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!