Fix when type of X axis is set to category

It should attach an example when X axis is set to category