Qt QML — поля в ChartView

Почему объект ChartView имеет поля, отличные от объекта Rectangle? Как сделать их одинаковыми? Например, если объект ChartView заменить прямоугольником, поля останутся прежними.

import QtQuick 2.7
import QtQuick.Controls 2.2
import QtCharts 2.2

Rectangle {
    anchors.fill: parent
    color: "#eeeeee"

    Rectangle {
        id: idRectConsole1
        width: 200
        anchors.top: parent.top
        anchors.left: parent.left
        anchors.bottom: parent.bottom
        anchors.margins: 20
        color: "#ffffff"

    }

    ChartView {
        anchors.top: parent.top
        anchors.left: idRectConsole1.right
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        anchors.margins: 20
        legend.visible: false

        LineSeries {
            name: "1"
            XYPoint { x: 2; y: 0.73278}
            XYPoint { x: 4; y: 1.2213}
            XYPoint { x: 6; y: -0.73278}

        }
    }    
}

введите здесь описание изображения


person Stanislav Shevchenko    schedule 24.07.2017    source источник
comment
Отвечает ли это на ваш вопрос? Как удалить интервал? Диаграмма QML   -  person Aleksey Kontsevich    schedule 23.02.2020