سؤال

after creating a new dimple.chart there are available chart.x and chart.y as defined in https://github.com/PMSI-AlignAlytics/dimple/wiki/dimple.chart On the other hand the values for chart.width and chart.height are 0. Is there any other way to find the with/height of the plot area?

هل كانت مفيدة؟

المحلول

Try chart._widthPixels() and chart._heightPixels() they aren't part of the public API but are used extensively internally for the plot size.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top