2 Replies Latest reply on Apr 9, 2015 11:52 AM by mary.wilson.1

    Color palette incorrectly written?

      Hello all,

      I have the following custom palette code in my preferences.tps located in documents, my tableau repository.

      <?xml version='1.0'?>

      <workbook>

      </preferences>

      </color-palette>

      <color-palette name="MAP" type="ordered-sequential"

      <color>#C4720E</color>

      <color>#F09628</color>

      (etc. there are 6 total)
      </color-palette>

      When I go to edit colors, palette:, it does not show. I restarted my computer and it still not there. Are there any other suggestion to what I might be able to do to get this to work?

        • 1. Re: Color palette incorrectly written?
          Toby Erkson

          Here's mine -- which works (size edited down to fit here):

          <?xml version='1.0'?>
          
          <workbook>
          <preferences>
           http://www.tableausoftware.com/support/knowledge-base/creating-custom-color-palettes
          by Toby Erkson, January 2011, March 2011
          
            <color-palette name="Red to Yellow" type="ordered-diverging">
              <color>#ff0000</color> red
              <color>#ffff00</color> yellow
            </color-palette>
          
             <color-palette name="Red to Yellow to Green" type="ordered-sequential">
              <color>#ff0000</color> red
              <color>#ffff00</color> yellow
              <color>#003300</color> green
            </color-palette>
          
            <color-palette name="Grey 5" type="regular">
              <color>#f7f7f7</color> white
              <color>#cccccc</color> light grey
              <color>#969696</color> medium grey
              <color>#636363</color> dark grey
              <color>#252525</color> black
            </color-palette>
          
            <color-palette name="Red/Blue 7" type="regular">
              <color>#b2182b</color> red
              <color>#ef8a62</color>
              <color>#fddbc7</color>
              <color>#f7f7f7</color> white
              <color>#d1e5f0</color>
              <color>#67a9cf</color>
              <color>#2166ac</color> blue
            </color-palette>
          
            <color-palette name="Red/Blue 11" type="regular">
              <color>#67001f</color> deep red
              <color>#b2182b</color> red
              <color>#d6604d</color>
              <color>#f4a582</color>
              <color>#fddbc7</color>
              <color>#f7f7f7</color> white
              <color>#d1e5f0</color>
              <color>#92c5de</color>
              <color>#4393c3</color>
              <color>#2166ac</color>
              <color>#053061</color> dark blue
            </color-palette>
          
          <!-- Rainbow palettes START -->
            <!-- Palette used:  http://simple.wikipedia.org/wiki/Rainbow -->
            <color-palette name="Rainbow Blend Wiki" type="ordered-sequential">
              <color>#ff0000</color> red
              <color>#ff7f00</color> orange
              <color>#ffff00</color> yellow
              <color>#00ff00</color> green
              <color>#0000ff</color> blue
              <color>#6600ff</color> indigo
              <color>#8b00ff</color> violet
            </color-palette>
          
            <color-palette name="Rainbow Stepped Wiki" type="regular">
              <color>#ff0000</color> red
              <color>#ff7f00</color> orange
              <color>#ffff00</color> yellow
              <color>#00ff00</color> green
              <color>#0000ff</color> blue
              <color>#6600ff</color> indigo
              <color>#8b00ff</color> violet
            </color-palette>
          
            <!-- Palette used:  http://www.lexipixel.com/graphics/roygbiv.htm -->
            <color-palette name="Rainbow Blend" type="ordered-sequential">
              <color>#ff0000</color> red
              <color>#ffa500</color> orange
              <color>#ffff00</color> yellow
              <color>#008000</color> green
              <color>#0000ff</color> blue
              <color>#4b0082</color> indigo
              <color>#ee82ee</color> violet
            </color-palette>
          
            <color-palette name="Rainbow Stepped" type="regular">
              <color>#ff0000</color> red
              <color>#ffa500</color> orange
              <color>#ffff00</color> yellow
              <color>#008000</color> green
              <color>#0000ff</color> blue
              <color>#4b0082</color> indigo
              <color>#ee82ee</color> violet
            </color-palette>
            <!-- Rainbow palettes END -->
          
            </preferences>
          
          </workbook>
          
          
          
          • 2. Re: Color palette incorrectly written?

            @TobyErkson

            Thank you!

            I adjusted it to what I need, and it works for me now!

            Much appreciated.

            Mary