def store_charttext   # :nodoc:
    record           = 0x1025         # Record identifier.
    length           = 0x0020         # Number of bytes to follow.
    horz_align       = 0x02           # Horizontal alignment.
    vert_align       = 0x02           # Vertical alignment.
    bg_mode          = 0x0001         # Background display.
    text_color_rgb   = 0x00000000     # Text RGB colour.
    text_x           = 0xFFFFFF46     # Text x-pos.
    text_y           = 0xFFFFFF06     # Text y-pos.
    text_dx          = 0x00000000     # Width.
    text_dy          = 0x00000000     # Height.
    grbit1           = 0x00B1         # Options
    text_color_index = 0x004D         # Auto Colour.
    grbit2           = 0x0000         # Data label placement.
    rotation         = 0x0000         # Text rotation.

    header = [record, length].pack('vv')
    data  = [horz_align].pack('C')
    data += [vert_align].pack('C')
    data += [bg_mode].pack('v')
    data += [text_color_rgb].pack('V')
    data += [text_x].pack('V')
    data += [text_y].pack('V')
    data += [text_dx].pack('V')
    data += [text_dy].pack('V')
    data += [grbit1].pack('v')
    data += [text_color_index].pack('v')
    data += [grbit2].pack('v')
    data += [rotation].pack('v')

    append(header, data)
  end
def store_charttext   # :nodoc:
    record           = 0x1025         # Record identifier.
    length           = 0x0020         # Number of bytes to follow.
    horz_align       = 0x02           # Horizontal alignment.
    vert_align       = 0x02           # Vertical alignment.
    bg_mode          = 0x0001         # Background display.
    text_color_rgb   = 0x00000000     # Text RGB colour.
    text_x           = 0xFFFFFF46     # Text x-pos.
    text_y           = 0xFFFFFF06     # Text y-pos.
    text_dx          = 0x00000000     # Width.
    text_dy          = 0x00000000     # Height.
    grbit1           = 0x00B1         # Options
    text_color_index = 0x004D         # Auto Colour.
    grbit2           = 0x0000         # Data label placement.
    rotation         = 0x0000         # Text rotation.

    header = [record, length].pack('vv')
    data  = [horz_align].pack('C')
    data += [vert_align].pack('C')
    data += [bg_mode].pack('v')
    data += [text_color_rgb].pack('V')
    data += [text_x].pack('V')
    data += [text_y].pack('V')
    data += [text_dx].pack('V')
    data += [text_dy].pack('V')
    data += [grbit1].pack('v')
    data += [text_color_index].pack('v')
    data += [grbit2].pack('v')
    data += [rotation].pack('v')

    append(header, data)
  end
Write the TEXT chart BIFF record.