def store_chart_binary(chart)   #:nodoc:
    if chart.respond_to?(:to_str)
      filehandle = File.open(chart, "rb")
      #      die "Couldn't open $filename in add_chart_ext(): $!.\n";
      while tmp = filehandle.read(4096)
        append(tmp)
      end
    else
      chart.close
      tmp = chart.get_data
      append(tmp)
    end
  end
def store_chart_binary(chart)   #:nodoc:
    if chart.respond_to?(:to_str)
      filehandle = File.open(chart, "rb")
      #      die "Couldn't open $filename in add_chart_ext(): $!.\n";
      while tmp = filehandle.read(4096)
        append(tmp)
      end
    else
      chart.close
      tmp = chart.get_data
      append(tmp)
    end
  end
Add the binary data for a chart. This could either be from a Chart object
 or from an external binary file (for backwards compatibility).