Customize chart

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3380
    petros mourouzis
    Participant

      Is there a way to have lines of different colors and different color of the solid color in the fill option?Screenshot 2020-03-14 at 11.18.34

      #3381
      dgteam
      Moderator

        If you want to have complete control over the colors and have each line and error bar the same color, you would need to create a command for each one.

        (I am assuming you want the error bar and line color the same.  If that is not the case, you can ignore the parts about changing the error bar color.)

        1. Add a column that you could use as a Mask.  Here I added the text column Group.
        2. Add the mask in the command.
        3. Set the color the line and the error bars to the same color tile (e.g., Line 1).

        (NOTE:  if this is not the color you want, don’t worry — you can customize in the style sheet later — they just need to the be the same entry in the list of color tiles)

        Line1

        Notice — I also added a Legend command and Specified the Legend name in the command as ‘one’.

        Next, close this command, highlight the command, copy (command-C) and paste (command-V).

        For this example, I copy and pasted the command twice and then for each command:

        1. Updated the Mask
        2. Updated the Legend name
        3. Changed the Line and Error bar to the same color
        4. Change the fill color

        Line2

        This gives you different lines and and colors for each fill.

        To change the Line colors. use the Style settings (this is  where the colors in the drop-down menu in the commands are specified for each graph — if you don’t care about keeping the colors coordinated for the line and error bars, you could just change the colors in the commands.).

        1. Open the Style settings.
        2. Click a color tile.
        3. Use the any of the color selectors to change the color.

        Line3

         

        If you only have a few lines, the above approach gives you a lot of flexibility, but does require the work of adding the additional commands and masks.

        Another way to distinguish between the data, that requires less commands, is to leave the lines the same color, and only change the points.  Then you can overlay a Points command with a color scheme.

        ColorScheme

         

        Here is a link to a Video that explains the color scheme option:

        https://youtu.be/gS-IoUDOCCk

        This video also introduces the Plots command.  Plots can draw multi-colored lines but requires the x is always the same, the y values are in separate columns, and does not draw error bars.  So I don’t think this is a good solution for you.

        Finally, (sorry for the long response!) we have been contemplating a new command which could allow for multicolored lines drawn from data in the format you have, along with the error bars.  We working on getting that in the Beta now — but hopefully this gets you want you need for the moment!

         

         

         

        #3382
        petros mourouzis
        Participant

          Thank you for your answer, I couldn’t manage to add a legend command, with the same plot. I think if I could do that I can manage the next.

          #3383
          petros mourouzis
          Participant

            Thank you for your answer, I couldn’t manage to add a legend command, with the same plot…I put the number in a new column and insert new plots.Screenshot 2020-03-14 at 19.32.58

            #3407
            dgteam
            Moderator

              We added a new article: How to Add a Legend.

              Please look it over and let us know if this helps or if you have any other questions.  Thanks!

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.