Skip to content

Commit

Permalink
feat: fix font size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 23, 2020
1 parent bd2db44 commit 56d46ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class MarkdownRenderComponent implements OnInit, OnChanges, AfterViewInit
const newData = this.toTreeData(chartInfo.data);
switch (chartInfo.type) {
case 'mindmap':
mychart.setOption(ChartOptions.buidMindmapOption(newData) as any);
mychart.setOption(ChartOptions.buildMindmapOption(newData) as any);
break;
case 'radarchart':
mychart.setOption(ChartOptions.buildRadarChartOption(newData));
Expand Down
16 changes: 8 additions & 8 deletions src/app/shared/support/chart-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const toolbox = {
}
};

function buidMindmapOption(data) {
function buildMindmapOption(data) {
return {
toolbox,
tooltip: {
Expand Down Expand Up @@ -180,7 +180,7 @@ function buildConfig(data, graphic: any[]) {
bounding: 'all',
children: [{
type: 'text',
style: {fill: '#000', text: '', fontSize: 14}
style: {fill: '#000', text: '', fontSize: 18}
}]
};

Expand Down Expand Up @@ -296,18 +296,18 @@ function buildQuadrantChartOption(data) {
show: false
},
visualMin: 0,
visualMax: 100,
visualDimension: 3,
visualMax: 1,
visualDimension: 1,
levels: [
{
itemStyle: {
borderWidth: 3,
borderWidth: 2,
borderColor: '#333',
gapWidth: 3
gapWidth: 2
}
},
{
color: ['#666666', '#7f195e', '#09c95e', '#008988'],
color: ['#09c95e', '#7f195e', '#666666', '#008988'],
colorMappingBy: 'id',
itemStyle: {
gapWidth: 1
Expand All @@ -320,7 +320,7 @@ function buildQuadrantChartOption(data) {
}

const ChartOptions = {
buidMindmapOption,
buildMindmapOption,
buildRadarChartOption,
buildPyramidChartOption,
buildQuadrantChartOption
Expand Down

0 comments on commit 56d46ce

Please sign in to comment.