Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
2685b85e
Commit
2685b85e
authored
Jun 06, 2018
by
Sascha Herzinger
Browse files
moved fieldset style to base.sass
parent
4df5aa0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/assets/base.sass
View file @
2685b85e
...
...
@@ -14,4 +14,13 @@
.fjs-seperator
width
:
100%
margin
:
20px
0
20px
0
\ No newline at end of file
margin
:
20px
0
20px
0
.fjs-fieldset
display
:
flex
flex-direction
:
row
flex-wrap
:
nowrap
justify-content
:
flex-start
margin
:
0
.4vh
0
0
.4vh
0
border
:
solid
1px
#fff
padding
:
0
.4vw
\ No newline at end of file
src/vue/charts/
CorrelationAnalysis
.vue
→
src/vue/charts/
Scatterplot
.vue
View file @
2685b85e
<
template
>
<chart
v-on:resize=
"resize"
>
<control-panel
class=
"fjs-control-panel"
name=
"
Correlation Analysis
"
>
<control-panel
class=
"fjs-control-panel"
name=
"
Scatterplot Panel
"
>
<data-box
class=
"fjs-data-box"
header=
"Numerical Variables"
:dataTypes=
"['numerical', 'numerical_array']"
...
...
@@ -13,18 +13,16 @@
v-on:update=
"update_categoryData"
>
</data-box>
<hr
class=
"fjs-seperator"
/>
<fieldset
class=
"fjs-
correlation-method
"
>
<fieldset
class=
"fjs-
fieldset
"
>
<legend>
Correlation Method
</legend>
<label>
<input
type=
"radio"
value=
"pearson"
v-model=
"params.method"
>
Pearson
</label>
<br/>
<label>
<input
type=
"radio"
value=
"spearman"
v-model=
"params.method"
>
Spearman
</label>
<br/>
<label>
<input
type=
"radio"
value=
"kendall"
v-model=
"params.method"
>
Kendall
...
...
@@ -115,7 +113,7 @@
import
StateSaver
from
'
../mixins/state-saver
'
import
_
from
'
lodash
'
export
default
{
name
:
'
correlation-analysis
'
,
name
:
'
scatterplot
'
,
data
()
{
return
{
error
:
''
,
...
...
@@ -193,7 +191,7 @@
subsets
()
{
return
[...
new
Set
(
this
.
shownResults
.
data
.
map
(
d
=>
d
.
subset
))]
},
p
oints
()
{
scaledP
oints
()
{
return
this
.
shownResults
.
data
.
map
(
d
=>
{
const
x
=
this
.
scales
.
x
(
d
.
value_x
)
const
y
=
this
.
scales
.
y
(
d
.
value_y
)
...
...
@@ -296,7 +294,7 @@
this
.
selectedPoints
=
[]
}
else
{
const
[[
x0
,
y0
],
[
x1
,
y1
]]
=
d3
.
event
.
selection
this
.
selectedPoints
=
this
.
p
oints
.
filter
(
d
=>
{
this
.
selectedPoints
=
this
.
scaledP
oints
.
filter
(
d
=>
{
return
x0
<=
d
.
x
&&
d
.
x
<=
x1
&&
y0
<=
d
.
y
&&
d
.
y
<=
y1
})
if
(
this
.
selectedPoints
.
length
>
0
&&
this
.
selectedPoints
.
length
<
3
)
{
...
...
@@ -402,7 +400,7 @@
}
}
},
'
p
oints
'
:
{
'
scaledP
oints
'
:
{
handler
:
function
(
newPoints
)
{
this
.
$nextTick
(()
=>
this
.
drawPoints
(
newPoints
))
}
...
...
@@ -477,17 +475,6 @@
<
style
lang=
"sass"
scoped
>
@import
'~assets/base.sass'
.fjs-control-panel
.fjs-correlation-method
white-space
:
nowrap
border
:
solid
1px
#fff
text-align
:
left
border-radius
:
3px
padding
:
0
0
.5vw
0
0
.5vw
legend
color
:
#fff
border
:
none
margin
:
0
svg
.fjs-lin-reg-line
stroke
:
#ff5e00
...
...
src/vue/components/DataBox.vue
View file @
2685b85e
...
...
@@ -121,7 +121,6 @@
height
:
10vh
min-width
:
15vw
border
:
1px
solid
#fff
border-radius
:
3px
overflow-y
:
scroll
padding
:
0
.3vh
17px
0
.3vh
0
.3vw
.fjs-item
...
...
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