x-axis as cateogies lazarus / 55-TAChart ---------------------------------------------------------------------- daveinhull · 2019-03-05 07:40 Hi, I'm struggling to get a graph with categories as the x-axis and counts as the y-axis from an access database. I've got it setup and have managed to get data displayed in a bar chart, but I just cannot get it to display the category names under the x-axis. When I select the x-axis field to be the name, it just crashes saying that 'xxxxx' is not a floating point? Any pointers would be great. Thanks Dave ---------------------------------------------------------------------- daveinhull · 2019-03-05 09:49 Hi, Ok so it looks as if the x-axis has to be a number, and for my purposes it just needs to be a sequential number. So I've created a filed in my datasource with just a sequence in it, then used the category field as the labelfield. That works, but it would be great if the x-axis could default to just a sequential number, unless of course it can, but I've just missed it. ---------------------------------------------------------------------- wp · 2019-03-05 09:52 The x field must always be numeric (or empty to get a sequential value). Get the categories names from the text field. Look at attached demo which is a modification of the code which I posted for your other question. ---------------------------------------------------------------------- daveinhull · 2019-03-05 12:26 Thanks wp, As I mentioned, I worked it out and I went back and removed the dummy sequence field from the x-axis entry and it works fine. Thanks again