Forum Discussion
KythrieSilva-cd
3 years agoCommunity Member
Can you draw a line with Javascript in Storyline 360?
Hi, Is it possible to draw a line on the screen using JavaScript in Storyline 360?
I'm working on a statistics example where I want to draw a regression line on a scatterplot. The learner can add ...
ChrisCurry
2 years agoCommunity Member
Thanks so much for posting this example!
I do have a question though. When I change the "ctx.lineTo()" numbers, it does not seem to increase the width of the line. It appears as if it is getting masked out.
So, for example, here is what the line looks with "ctx.lineTo(300, 120)". (See line01.jpg)
However, if i change "ctx.lineTo(1200,120)", it changes then angle of the line, but the width is the same. (See line02.jpg)
Do you have any insight into why this is happening?