Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
945
Zoom not working in a jQuery Dialog box
posted

Guys,

I have my igDataChart in a popout dialog box so that I can make the chart bigger.

Everything is working great except for the part where the chart zooms. I've set both verticalZoomable and horizontalZoomable to true. I can see the selection area when you use the mouse cursor but it doesn't zoom.

Here is my code. Am I missing something? Can you give me any suggestions on how to get it working?

$("#revcostchart").igDataChart({
width: "500px",
height: "350px",
verticalZoomable: true,
horizontalZoomable: true,
dataSource: d,
axes:
[
{
name: "catX",
type: "categoryX",
label: "Month"
},
{
name: "numY",
type: "numericY",
minimumValue: 0,
formatLabel: function (val) { return '$' + val; }
}
],
series:
[
{
name: "Reviewer Costs",
title: "ReviewerCosts",
type: "column",
xAxis: "catX",
yAxis: "numY",
valueMemberPath: "Value",
showTooltip: true,
isDropShadowEnabled: true,
isHighlightingEnabled: true,
isTransitionInEnabled: true,
tooltipTemplate: "tooltipTemplate5",
}
]
});

Thanks!

Parents
  • 16310
    Offline posted

    Hello Ryan,

    Your code seems fine. I believe the reason for not zooming lies outside of this portion. Could you please provide the other part of your code or a small isolated sample ?

    Meanwhile you can check the attached sample which opens the chart in a popup - everything including the zoom works fine on my machine.  Please refer to it and let me know if it helps.

    igDataChart_zoom.zip
Reply Children