Jump to content
  • 0

Make Y Axis title horizontal


deemuss

Question

1 answer to this question

Recommended Posts

  • 1

@deemuss

It is possible using some additional JS code.

Please insert this snippet of code into the footer of a datapage:

<script type="text/javascript">
document.addEventListener('DataPageReady', test);

function test() {
  if (typeof Highcharts === 'undefined') {
   setTimeout(test, 20);
   return;
  }
  var chartObj = Highcharts.charts[0];
  if (!chartObj) return setTimeout(test, 20);
  chartObj.yAxis[0].axisTitle.element.setAttribute("transform", "translate(0) rotate(0 25.66 146.5)")
}
</script>

joxi_screenshot_1559735905156.png.cbbb8b5bdd8171bb0dff32143128185d.png

 

Do not forget to disable HTML editor of the footer!

Let me know if you need any further assistance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...