question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Per-axis separators attribute

See original GitHub issue
var trace = {
  x: ['2000-01-30', '2000-01-31'],
  y: [1.5, 1.7],
  type: 'scatter' 
};

var data = [trace];

var layout = {
  xaxis: {
    type: 'date',
  },
  yaxis: {
    tickformat: ',.'
  },
};

Plotly.plot('myDiv', data, layout);

Last two axis labels are wrong and the comma format isn’t applied. The problem doesn’t occur when setting layout.separators = ',.'.

https://codepen.io/anon/pen/LLmWpm

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
alexcjohnsoncommented, Jul 13, 2017

Also, similar to calendars #1220 - if your users are providing this data as text, not numbers, we currently only support parsing with '.' as the decimal separator. If we need to support other text formats (which may be independent of how you want to display the data in tick & hover labels) we’ll need separators as a trace property too.

0reactions
etpinardcommented, Apr 12, 2019

This ticket most likely won’t be implemented. Closing.

https://github.com/plotly/plotly.js/issues/1842#issuecomment-352105362 sums up our current state-of-mind on the topic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

syl - Music Encoding Initiative
@con(optional)Describes the symbols typically used to indicate breaks between syllables and their functions. Allowed values are: "s" (Space (word separator) ...
Read more >
Praxis | Josh Smith on WPF | Page 2
Posts about Praxis written by Josh Smith. ... You can use a little-known attribute called x:FieldModifier to remedy the problem.
Read more >
How to compare msXML nodes - RTL and Delphi Object Pascal
I have an code: function FindParentNodeByName(const AChildNode: IXMLDOMNode; const AParentNodeName: string): IXMLDOMNode;
Read more >
ant/macros.xml · ec807bbf0be4a01231478c01df61993f35350741 ...
<project name="praxis-macros">. 2. <!-- cf. 3. http://blog.andrewbeacock.com/2005/08/pretty-printing-java-classpaths-using.html.
Read more >
Examiner User Manual - Documentation
Please contact Altran Praxis if use of this attribute is important to your ... [1] Forward slash is used as a directory separator...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found