File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< script type ="module ">
5
- import 'https://unpkg.com/ternary-plot@latest /dist/ternary-plot.umd.js' ;
5
+ import '. /dist/ternary-plot.umd.js' ;
6
6
</ script >
7
7
</ head >
8
8
< style >
27
27
function getRandomData ( length ) {
28
28
return {
29
29
titles : {
30
- bottom : "Variable A" ,
31
- right : "Variable B" ,
32
- left : "Variable C" ,
30
+ bottom : "Variable A → " ,
31
+ right : "← Variable B" ,
32
+ left : "← Variable C" ,
33
33
} ,
34
34
data : Array . from ( { length} , getRandomDatum ) ,
35
35
} ;
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const transformBottomTitle = {
136
136
} ;
137
137
138
138
const bottomTitle = {
139
- get : ( { data} ) => `${ data . titles . bottom } → `
139
+ get : ( { data} ) => `${ data . titles . bottom } `
140
140
} ;
141
141
142
142
const transformRightTitle = {
@@ -147,7 +147,7 @@ const transformRightTitle = {
147
147
} ;
148
148
149
149
const rightTitle = {
150
- get : ( { data} ) => `← ${ data . titles . right } `
150
+ get : ( { data} ) => `${ data . titles . right } `
151
151
} ;
152
152
153
153
const transformLeftTitle = {
@@ -158,7 +158,7 @@ const transformLeftTitle = {
158
158
} ;
159
159
160
160
const leftTitle = {
161
- get : ( { data} ) => `← ${ data . titles . left } `
161
+ get : ( { data} ) => `${ data . titles . left } `
162
162
} ;
163
163
164
164
const pointsCoordinates = {
You can’t perform that action at this time.
0 commit comments