# Adding tick lines and labels to the x and y axis of a D3 chart in React Native

**URL:** https://talk.observablehq.com/t/adding-tick-lines-and-labels-to-the-x-and-y-axis-of-a-d3-chart-in-react-native/9278
**Category:** Help
**Created:** [May 17, 2024, 11:38am UTC](https://talk.observablehq.com/t/adding-tick-lines-and-labels-to-the-x-and-y-axis-of-a-d3-chart-in-react-native/9278 "2024-05-17T11:38:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wildman](https://avatars.discourse-cdn.com/v4/letter/w/f4b2a3/32.png) [@wildman](https://talk.observablehq.com/u/wildman)
#### Post date: [May 17, 2024, 11:38am UTC](https://talk.observablehq.com/t/adding-tick-lines-and-labels-to-the-x-and-y-axis-of-a-d3-chart-in-react-native/9278/1 "2024-05-17T11:38:43Z")

</div>

Hello,

Whilst I’m an experienced programmer, I’m new to D3 and I really like it!

I’ve been learning by running through examples and I’ve modified the chart from this tutorial:

> **[D3 and React-Native — An Essential Guide to Line Graphs](https://betterprogramming.pub/d3-and-react-native-an-essential-guide-to-line-graphs-dc1ce392b440)**
>
> Your guide to making beautiful, animated, line graphs in React Native

I’m looking to add tick lines and labels to the x and y axis. Can anybody please provide some suggestions?

The code for the example is here:

> **[D3LineChartSample/src at main · friyiajr/D3LineChartSample](https://github.com/friyiajr/D3LineChartSample/tree/main/src)**
>
> An example of how to create D3 Line Graph animations in React Native to accompany my Medium Article - friyiajr/D3LineChartSample

Thanks!

I’ve tried svg.append but I can’t get it to work
