##// END OF EJS Templates
Adds force option to chartTheme...
Adds force option to chartTheme * adds missing pen to QLegend * adds missing getters pen,brush from qcharts * renames set getters for titile and background in qchart

File last commit:

r1:e2b454419c47
r645:9b55fd85f9c4
Show More
canvaschart.qml
29 lines | 700 B | application/x-qml | QmlLexer
import QtQuick 2.0
Canvas {
id: canvas
width: 200
height: 200
smooth:true
renderTarget:Canvas.Image
renderInThread:false
onWidthChanged: requestPaint()
onHeightChanged: requestPaint()
onPaint: {
var ctx = canvas.getContext('2d')
ctx.reset()
ctx.clearRect(0, 0, canvas.width, canvas.height)
ctx.strokeStyle = "red"
ctx.lineWidth = 1
ctx.moveTo(10, 10)
ctx.lineTo(10, canvas.height-10)
ctx.lineTo(canvas.width-10, canvas.height-10)
ctx.text("Axis x", canvas.width / 2, canvas.height)
ctx.text("Insert chart here", canvas.width / 2, canvas.height / 2)
ctx.stroke();
}
}