Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
49a172c8
Commit
49a172c8
authored
8 years ago
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
изменения в отрисовке hbar chart
parent
fedb7f2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+3
-8
No files found.
common/Charts/ChartsDrawer.js
View file @
49a172c8
...
...
@@ -5970,7 +5970,7 @@ drawHBarChart.prototype =
//расскомментируем, чтобы включить старую схему отрисовки(+ переименовать функции _DrawBars3D -> _DrawBars3D2)
//this.sortZIndexPaths.push({seria: i, point: idx, paths: paths, x: point1.x, y: point1.y, zIndex: point1.z});
width
=
this
.
chartProp
.
widthCanvas
-
this
.
chartProp
.
chartGutter
.
_left
-
this
.
chartProp
.
chartGutter
.
_right
;
//
width = this.chartProp.widthCanvas - this.chartProp.chartGutter._left - this.chartProp.chartGutter._right;
var
controlPoint1
=
this
.
cChartDrawer
.
_convertAndTurnPoint
(
x5
+
width
/
2
,
y5
-
individualBarHeight
/
2
,
z5
);
var
controlPoint2
=
this
.
cChartDrawer
.
_convertAndTurnPoint
(
x5
+
width
/
2
,
y5
,
z5
+
perspectiveDepth
/
2
);
var
controlPoint3
=
this
.
cChartDrawer
.
_convertAndTurnPoint
(
x5
,
y5
-
individualBarHeight
/
2
,
z5
+
perspectiveDepth
/
2
);
...
...
@@ -6010,7 +6010,7 @@ drawHBarChart.prototype =
this
.
sortZIndexPaths
.
sort
(
function
sortArr
(
a
,
b
)
{
if
(
b
.
zIndex
==
a
.
zIndex
)
return
b
.
y
-
a
.
y
;
return
a
.
x
-
b
.
x
;
else
return
b
.
zIndex
-
a
.
zIndex
;
});
...
...
@@ -6448,12 +6448,7 @@ drawHBarChart.prototype =
for
(
var
i
=
0
;
i
<
this
.
sortZIndexPaths
.
length
;
i
++
)
{
drawVerges
(
this
.
sortZIndexPaths
[
i
].
seria
,
this
.
sortZIndexPaths
[
i
].
point
,
this
.
sortZIndexPaths
[
i
].
paths
,
true
,
this
.
sortZIndexPaths
[
i
].
verge
);
}
for
(
var
i
=
0
;
i
<
this
.
sortZIndexPaths
.
length
;
i
++
)
{
drawVerges
(
this
.
sortZIndexPaths
[
i
].
seria
,
this
.
sortZIndexPaths
[
i
].
point
,
this
.
sortZIndexPaths
[
i
].
paths
,
false
,
this
.
sortZIndexPaths
[
i
].
verge
);
drawVerges
(
this
.
sortZIndexPaths
[
i
].
seria
,
this
.
sortZIndexPaths
[
i
].
point
,
this
.
sortZIndexPaths
[
i
].
paths
,
null
,
this
.
sortZIndexPaths
[
i
].
verge
);
}
},
...
...
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