Grasshopper

algorithmic modeling for Rhino

For a certain project, I needed to create a monthly line chart instead of the default bar chart that LB - Make Bar Chart component creates. The way to do it was use the data label pts output and put it into a polyline GH component. Firstly,it would be helpful to have that option within the component? 

But the problem I was facing was that since the dataLabelPts is really to add data labels, it had an factor added to move the labels above the bar charts (image : 1.jpg) . Since I wanted to depict the line chart with exact values, I removed the factor (+(yS/conversionFac) ) from the python script and it worked. (image : 2.jpeg)

I am thinking if this would be worth incorporating into the component?

 

Views: 702

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

I would add this to github so Chris can take a look and implement it if he agrees with your comments.

Apoorv,

I like the suggestion and I apologize for the late reply.  I will implement this option now while I am fixing a bug that was found on the component.

-Chris

Apoorv,

Your request has been implemented: 

https://github.com/mostaphaRoudsari/ladybug/commit/c60940d066d8c411...

Sync with the github to get the new component and let me know if the new _labelPtsOffset_ input behaves in the way you imagined.

-Chris

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service