Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
share
fe-common-library
Commits
58a77afb
Commit
58a77afb
authored
4 years ago
by
oahehc
Browse files
Options
Download
Email Patches
Plain Diff
Doc: add note for generator
parent
14584c5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/components/SvgChartV2/SvgChart.js
src/components/SvgChartV2/SvgChart.js
+15
-0
No files found.
src/components/SvgChartV2/SvgChart.js
View file @
58a77afb
...
...
@@ -7,6 +7,21 @@ const Colors = {
Default
:
'
221,221,221
'
,
};
/*
session: [[1585008000, 1585017000], [1585020600, 1585029600]]
| | / /
| | / /
| | / /
| | / /
value | | / /
18092.35 ..... (0,0) ------------------------------ (width, 0)
| |
| |
| SVG CHART |
| |
| |
17402.93 ..... (0,height) ------------------------- (width,height)
*/
export
const
getGenerator
=
(
pd
,
w
,
h
,
minX
,
maxX
,
minY
,
maxY
,
session
,
marginTop
)
=>
{
const
desession
=
x
=>
{
let
res
=
x
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment