Add datatipEditor feature to CartesianChartModel #2044

Closed
mertsincan opened this Issue Feb 1, 2017 · 0 comments

Projects

None yet

1 participant

@mertsincan
Member

You can change tooltip of chart by yourself. Exp;

//bean
combinedModel.setShowDatatip(true);
combinedModel.setDatatipEditor("customTooltip");

//JS
function customTooltip(str, seriesIndex, pointIndex, plot) {
        var val = plot.data[seriesIndex][pointIndex];
        return '<table style="background-color: blue; color: yellow;"><tr><td>seriesIndex: ' + seriesIndex + '</td></td>' +
                '<tr><td>pointIndex: ' + pointIndex + '</td></tr>' +
                '<tr><td>tooltip Val: ' + val + '</td></tr>' +
                '<tr><td>str: ' + str + '</td></tr>' +
                '<tr><td>customText: Custom Tooltip</td></tr></table>';
    }

customtooltip

@mertsincan mertsincan added this to the 6.1 milestone Feb 1, 2017
@mertsincan mertsincan added a commit that closed this issue Feb 1, 2017
@mertsincan mertsincan Fixed #2044 c0db283
@mertsincan mertsincan closed this in c0db283 Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment