kirpal singh manral Posted August 7, 2020 Share Posted August 7, 2020 Hi, I have a requirement to combine two bar garphs having a common x-axis(date). The one bar chart shouldhavebars above x-axis and the other bar chart has bars below(inverted) the x-axis having common x-axis. Is it possible in spotfire. I am working on 7.x version. Thanks Link to comment Share on other sites More sharing options...
Fabian Duerr Posted August 9, 2020 Share Posted August 9, 2020 Why don't you use negative values to create bars below the X-axis So invert the values from one data set, combine both sets, then plot using the color by option Link to comment Share on other sites More sharing options...
kirpal singh manral Posted August 10, 2020 Author Share Posted August 10, 2020 Thanks for your response. Actually i have different variables for both graphs on y-axis. Link to comment Share on other sites More sharing options...
Fabian Duerr Posted August 10, 2020 Share Posted August 10, 2020 Okay, I see... Then I don't know any solutions that satisfies your requirements by 100%. I suggest to put both values on the y-axis and Spotfire should automatically make two trellis for you. Link to comment Share on other sites More sharing options...
Kirsten Smith (she/her) Posted August 10, 2020 Share Posted August 10, 2020 Trellis on (Column names) Link to comment Share on other sites More sharing options...
Anders Gavare Posted August 11, 2020 Share Posted August 11, 2020 Depending on what your data looks like, it may be possible. If you can identify which rows come from dataset 'a' and which come from 'b', for example if you do Add Rows and include an origin column, then you could use an expression such as Sum(If([origin]="a", [ValueA], -[ValueB]))on the Y axis (note the minus for ValueB), and then split on Color By that origin column. That way, origin a would be above the 0 line and origin b below. But if the values themselves are negative or add up to negative values, or if you need to do something more complicated than Sum, perhaps more thought is needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now