-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
66 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>{{ title }}</title> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts-gl.min.js"></script> | ||
<style> | ||
.container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.item { | ||
margin: auto; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="item" id="{{ chart_id }}" style="width: {{ width }}px; height: {{ height }}px"></div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
{{#if theme_source} } {{{theme_source} } } { | ||
{ | ||
/if}} | ||
{{#each gep_maps} } | ||
echarts.registerMap('{{ this.name }}', {{{this.opt}} | ||
}); | ||
{ | ||
{ | ||
/each}} | ||
var chart = echarts.init(document.getElementById('{{ chart_id }}'), {{#if theme}} '{{ theme }}'{{else} } null{ | ||
{ | ||
/if}}, { renderer: '{{ canvas_type }}' }); | ||
var option = {{{chart_option} | ||
} | ||
}; | ||
chart.setOption(option); | ||
</script> | ||
</body> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>{{ title }}</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js"></script> | ||
<style> .container { display: flex; justify-content: center; align-items: center; } .item { margin: auto; } </style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="item" id="{{ chart_id }}" style="width: {{ width }}px; height: {{ height }}px"></div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
var chart = echarts.init(document.getElementById('{{ chart_id }}')); | ||
var option = {{{ chart_option }}}; | ||
chart.setOption(option); | ||
</script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ style = [] | |
|
||
# Javascript code file | ||
script = [ | ||
"https://cdn.jsdelivr.net/npm/[email protected].1/dist/echarts.min.js", | ||
"https://cdn.jsdelivr.net/npm/[email protected].0/dist/echarts.min.js", | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts-gl.min.js", | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<title>Leptos App</title> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/echarts.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/echarts.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts-gl.min.js"></script> | ||
</head> | ||
|
||
<body></body> | ||
|
||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<title>Yew App</title> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/echarts.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/echarts.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts-gl.min.js"></script> | ||
</head> | ||
|
||
|