# Format x-labels using VegaLite

**URL:** https://discourse.julialang.org/t/format-x-labels-using-vegalite/14811
**Category:** Visualization
**Created:** [September 11, 2018, 1:14pm UTC](https://discourse.julialang.org/t/format-x-labels-using-vegalite/14811 "2018-09-11T13:14:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [September 11, 2018, 2:56pm UTC](https://discourse.julialang.org/t/format-x-labels-using-vegalite/14811/2 "2018-09-11T14:56:32Z")

</div>

My guess is, that you can get what you want by changing the type of :pubyear to string:

```julia
df[:pubyear]=string.(df[:pubyear])

```

If I am wrong please consider reformating your question according to

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757/):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/format-x-labels-using-vegalite/14811)._
