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.

Multi axis capability

See original GitHub issue

You talked about multi axis in https://github.com/frappe/charts/issues/93

But there is no reference to it in the doc, so I have a proposal:

{
    xAxis: [{
       id: 'bottom-axis',
       title: 'Time'
       position: 'bottom'
    }],
    yAxis: [
        {
            id: 'left-axis',
            position: 'left',
            title: 'Rate',
            unit: ['point', 'points'], // array with [singular, plural] or simple string for both
            // tooltipUnit: unit as default value 
            // tickUnit: unit as default value 
        },
        {
            id: 'right-axis',
            position: 'right',
            title: 'Price',
            unit: '$'
        }
    ],

    labels: [
        {
            axisID: "bottom-axis",  // refer to a xAxis id
            values: ["12am-3am", "3am-6am", "6am-9am", "9am-12pm", "12pm-3pm", "3pm-6pm", "6pm-9pm", "9pm-12am"]
       }
    ],

    datasets: [
       {
          axisID: "left-axis", // refer to a yAxis id
          name: "Some Data",
          chartType: 'bar',
          values: [25, 40, 30, 35, 8, 52, 17, -4]
        },
        {
          axisID: "left-axis",
          name: "Another Data",
          chartType: 'bar',
          values: [25, 40, 30, 35, 8, 52, 17, -4]
        },
        {
          axisID: "right-axis",
          name: "Another Data",
          chartType: 'bar',
          values: [25, 40, 30, 35, 8, 52, 17, -4],
        }
    }
}

there is an opportunity to solve https://github.com/frappe/charts/issues/128 too

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

6reactions
phoetcommented, Dec 7, 2020

As an open-source maintainer, I understand the desire to reduce the amount of time that you need to dedicate to project. In order to do that and still be able to improve the library and adapt it to users needs, it would be helpful to give guidance to developers willing to implement the feature themselves.

I really like the simplicity of the library and the looks of the default charts. Unfortunately without the option of having at least two axis, it’s not a fit for my usecase and probably a lot of others as well.

I’d like to show the total number of something, say infections, and the daily increase of cases. Since both numbers run out of scale quickly, the chart is unusable. I’m currently working around this by providing 2 different charts, but that is suboptimal.

Screenshot 2020-12-07 at 10 46 51

As you can see in the screenshot, it’s basically impossible to see the difference in daily increase at a glance.

2reactions
rvbdcommented, Jul 20, 2020

Hi @pratu16x7 there is a note in #41 that this is implemented in V1, however I couldn’t find a way to use it. Did this go out to production? If not then I will look into contributing if possible.

The library as it is, is already good btw. It’s just that with data anlysis, sometimes 2 Y axis is required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiaxis machining - Wikipedia
There are three main components to multiaxis machines: The machines physical capabilities i.e. torque, spindle speed, axis orientation/operation. The CNC drive ...
Read more >
3-Axis to 12-Axis: CNC Milling Machine Capabilities ...
In this article, we'll compare the functions and capabilities of various multi-axis CNC milling machines. depiction of the CNC machining axis types Source....
Read more >
World-Class Precision Multi-Axis Machining | Trace-A-Matic
The multi-axis platform cuts part geometry and complex shapes unachievable by other machining methods, due to the exceptional mobility of workpiece to tool ......
Read more >
We've Upgraded Multi-axis Capabilities for Toolpaths in ...
An overview of the recent multi-axis additions to toolpaths and how you can use them to get more out of your machine tools....
Read more >
What's the Difference Between 3-axis, 4-axis & 5- ...
This allows complex arcs to be machined, such as the profile of cam lobes, and helixes. 4-axis machining gives us the ability to...
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