Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
trivalent
dashboard-trivalent
Commits
254652b0
Commit
254652b0
authored
Jun 20, 2019
by
Francisco Jesús Acién Pérez
Browse files
set to unknown when there is no source
parent
9506ba16
Pipeline
#1562
passed with stages
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demo/elements/google-chart-elasticsearch/google-chart.html
View file @
254652b0
...
...
@@ -542,7 +542,15 @@ Data can be provided in one of three ways:
if
(
this
.
rows
&&
this
.
rows
.
length
>
0
&&
this
.
cols
&&
this
.
cols
.
length
>
0
)
{
// Create the data table from cols and rows.
// console.log(data)
//Check that there are not undefined elements
// If exists set it to unknown
for
(
var
i
=
0
;
i
<
this
.
rows
.
length
;
i
++
){
if
(
this
.
rows
[
i
][
0
]
==
undefined
){
this
.
rows
[
i
][
0
]
=
"
Unknown
"
;
}
}
dataTable
=
new
google
.
visualization
.
DataTable
();
dataTable
.
cols
=
this
.
cols
;
for
(
var
i
=
0
;
i
<
this
.
cols
.
length
;
i
++
)
{
...
...
@@ -573,7 +581,6 @@ Data can be provided in one of three ways:
// There is an error when rows have not the same length, we have to
// delete unnecesary data from rows (undefined values)
var
numCols
=
0
;
for
(;
this
.
rows
[
0
][
numCols
]
!=
undefined
;
numCols
++
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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