Standard Chart XY Bar Renderer Change Margin in Code

Carl,

Do you have some code I could use to change the margin value on my standard charts XY Bar Renderer dataset? I am making a histogram and depending on the size of the bins the margin needs to change so the bars do not look all smashed together.

Thanks,

Try this:

chart = ... get the chart chart.dynamicProps.get("Data").renderer.margin = 0.4 chart.createChart()