# Is it possible to set the format and the start point at yaixs in dcc.Graph?

**URL:** <https://community.plotly.com/t/is-it-possible-to-set-the-format-and-the-start-point-at-yaixs-in-dcc-graph/36278>\
**Category:** Dash Python\
**Created:** [March 16, 2020, 4:16pm UTC](https://community.plotly.com/t/is-it-possible-to-set-the-format-and-the-start-point-at-yaixs-in-dcc-graph/36278 "2020-03-16T16:16:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RavenCrown](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RavenCrown](https://community.plotly.com/u/RavenCrown)\
**Post date:** [March 16, 2020, 4:16pm UTC](https://community.plotly.com/t/is-it-possible-to-set-the-format-and-the-start-point-at-yaixs-in-dcc-graph/36278/1 "2020-03-16T16:16:11Z")

</div>

Hi guys,

I am trying to build dashboard based on Dash and Plotly. While currently, I encounter an annoying problem. It possible to set the format and start point at the yaixs? This is my part of codes.

```auto
dcc.Graph(
                    id='proportion_success_line_chart',
                    figure={
                        'data': [
                            {
                                'x': data['x'],
                                'y': data['y'] ,
                                'text': data['text'],
                                'name': 'XXX',
                                'mode': 'lines+markers'
                            }
                        ],
                        'layout': {
                            'xaxis': {'title': 'XXX'},
                            'yaxis': {'title': 'YYY', 'tickformat': "00.2%",
                                      'tickvals': [0.7+x*0.05 for x in range(6)]},
                            'margin': {'l': 60, 'b': 30, 't': 10, 'r': 0},
                            'height': 450,
                            'hovermode': 'closest',
                            'clickmode': 'event+select'
                        }
                    }

                )

```

Why ‘tickvals’ doesn’t work in that code? Since the yaxis shows the percentage, I hope it could start at 70% so that the whole graph will look nice. Thank you for your guys help.

---

<div class="post-metadata">

**Author:** ![Emmanuelle](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emmanuelle/32/7853_2.png) [@Emmanuelle](https://community.plotly.com/u/Emmanuelle)\
**Post date:** [March 17, 2020, 1:52pm UTC](https://community.plotly.com/t/is-it-possible-to-set-the-format-and-the-start-point-at-yaixs-in-dcc-graph/36278/2 "2020-03-17T13:52:01Z")

</div>

Hi @RavenCrown, I believe you also have to fix the `yaxis` range here: [https://plot.ly/javascript/axes/#setting-the-range-of-axes-manually](https://plot.ly/javascript/axes/#setting-the-range-of-axes-manually)
