Jump to content
Software FX Community

Having previous Date in Place of Negative values


Selvam84
 Share

Recommended Posts

Hi

 I am using Gantt with RandomData-Style="NegativeValues" i.e "2D Horizontal Zero Axis Chart",

in default Which will have -values and +values like the below

if i set Min =-2,Max=3 and step=1

|

|

|

 |

-------------------------------------------

-2  -1 0 1   2   3

instead of the above i want to have the chart with dates on the Y axis since i am getting date as input values

I want to set Today date i.e "22 jun" as "0" value and previous date as "-" values and future date as "+" values

how should i set min,max and 0  as date so that i can get the below

|

|

|

|

----------------------------------------------------------------------

22April 22May 22Jun 22july  22Aug

Please help, Thanks

Link to comment
Share on other sites

There is no API to move the "zero" to another value.

You can however use Y-From values to start each bar from any arbitrary value (instead of zero or the Min).

You need to set Data.YFrom to the initial date (defined by you) for all points in the chart. If you are doing DataBinding, make sure you do this AFTER databinding is performed.

 

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
Reply to this topic...

×   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.

 Share

×
×
  • Create New...