Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
d3 How to align average of data in right axis with name in left axis in plot?

Let's say I have a data

name,percentage
1,0.01
1,0.03
2,0.02
2,0.04
3,0.03
3,0.05
4,0.04
4,0.06

First I will create a scatter plot to display all data points and y-axis on left as name, x-axis as average. Then, I want to compute the average of the above dataset, which is

name,average
1,0.02
2,0.03
3,0.04
4,0.05

and assign these average values to right axis to align with name in the left. The result should roughly like below image.

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!