I am trying to change the font size for axes labels from the client. I was able to do so with series labels as follows:
var
chart = $find(chartname);
var
kw = chart.get_kendoWidget();
kw.options.title.font = kw.options.title.font.replace(
"16px"
,
"12px"
);
kw.options.series[2].labels.from.font = kw.options.series[2].labels.from.font.replace(
"12px"
,
"8px"
);
kw.refresh();
And this works well for the series labels and the title font. However, when trying to change the axis labels in this way:
kw.options.xAxis.labels.font=kw.options.xAxis.labels.font.replace(
"12px"
,
"6px"
)
It does not seem to have any effect. Is this a bug? Or am I going about this the wrong way?
In case anyone is interested, the reason i am doing this is because I am exporting to PDF (with rad export manager) and there does not seem to be a way to scale the content to "fit to page" except changing the content size. (outside of asking the user to check the "fit to page" option when printing the pdf.