FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

completely hide scale (including x and y axis) #442

Closed nini-os closed 8 years ago

nini-os commented 8 years ago

Hi,

is there an option to completely hide the scale?

including x and y axis.

Thanks

markosko commented 8 years ago

Hello, probably you want these options:

xAxisBottom : false,
xAxisTop : false,
yAxisLeft : false,
yAxisRight : false

if something u can check documentation for them at https://github.com/FVANCOP/ChartNew.js/wiki/100_030_Axis#xaxisbottom

nini-os commented 8 years ago

already tried but as you can see here:

https://jsfiddle.net/qLdkby03/

the scale is not completely hidden. There's a light grey y and x axes.

markosko commented 8 years ago

add option, it will set lines as transparent so it will looks like its not there

scaleLineColor:"rgba(0,0,0,0)"
nini-os commented 8 years ago

great!

almost perfect,

but as you can see here:

https://jsfiddle.net/qLdkby03/1/

y lines are not hidden...

nini-os commented 8 years ago

for anyone with my same problem,

just add:

scaleGridLineColor: "rgba(0,0,0,0)"

and everything will hide.

Thanks @markosko !!!

markosko commented 8 years ago

Didnt see that grid scale lines but u can use this one and if something better if yout mail to me so we wont spam people, email can be found in my profile ;)

scaleGridLineColor:"rgba(0,0,0,0)",
nini-os commented 8 years ago

we comment at the same time!

anyway for me it's ok!

I closed the issue.