Thanks. That helped. But I thought it should not be necessary to change the type of a whole column where a simple format function should be able to do the trick.
There may be other (and better) solutions, but without some complete code example it is not easy to guess which solution is most suitable. Currently this is what I would have to do: (1) create something similar to your description of the problem, (2) search for a good solution. (3) afterwards I could still be wrong, because I donβt know your code. Because of (3) I donβt start with (1)
As you can see, because of the Number-Type in pubyear we get a quantitative type on the x-axis, which results in the intermediate tics of 2005.5 and 2006.5.
My straight forward, easy to understand solution would be:
julia> df[:xlabels]=[ @sprintf("Year %d",year) for year in df[:pubyear] ]
3-element Array{String,1}:
"Year 2005"
"Year 2006"
"Year 2007"
julia> df |> @vlplot(:bar, x=:xlabels, y = :za_percentage, points = true)
I hope this helps and also for the question on "What do you need more?: What we need is code which is easy to copy&paste into the REPL. This would take away 50% of the work for people who try to help (no offence meant).