RSS Feed for ChartingCharting

Truncated datagrid column in Flex

I was looking for a way to get some of my datagrid fields nicely truncated because some where to long but also because the window is completely scalable. Since I had to use itemrenders anyway I thought I just could set the truncateToFit property of a label in an itemrender. But when the datagrid is resized it does not automaticly resize the renders.

So this is what I came up with: Continued

DataTipRenderer

In charting you can set datatips to true to diplay some information about the point you have selected in a graph. To make a custom tip you have to use the dataTipRenderer property from the graph. It’s just like making a renderer for a combobox but the exception is that the data doesn’t come from the dataprovider but it comes from the graph it self. So just the x and y value. You can get them through the “chartItem” like: data.chartItem.xValue;

This is an example for a datatiprenderer taken from Kyle Continued