Domanda

Is it possible to use the Kendo-Dataviz pie chart as a button control. I want every piece to be a different control.

I could not find anything like that in the documentation.

È stato utile?

Soluzione

You might define a seriesClick event. Something like:

$("#chart").kendoChart({
    series: [
        {
            type: "pie",
            categoryField: "type",
            data: [
                { value: 1, type: "Category 1" },
                { value: 2, type: "Category 2" }
            ]
        }
    ],
    seriesClick : function (e) {
        alert("You clicked on: " + JSON.stringify(e.dataItem));
    }
});

See it running here : http://jsfiddle.net/rS3T4/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top