Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using BarChart in a Widget

  • To: mathgroup at
  • Subject: [mg56539] Re: Using BarChart in a Widget
  • From: "Brett Patterson" <muckle.moose at>
  • Date: Thu, 28 Apr 2005 02:40:40 -0400 (EDT)
  • References: <d4kl1t$edj$><d4mrr2$1u9$>
  • Sender: owner-wri-mathgroup at

Hi David,

Thanks for the reply.

Perhaps you could tell me what's wrong with the bar orientation in the

GUIRun[Widget["Panel", {

      Widget["MathPanel", {"preferredSize" ->
      Widget["Dimension", {"width" -> 300, "
        height" -> 300}]}, Name -> "zplot",
            WidgetLayout -> {"Stretching" -> {True, Maximize}}],

      BindEvent["componentResized", Script[updateZernikes[]]],

      Script[updateZernikes[] := Block[{$DisplayFunction = Identity},
            expr = Show[ToExpression["
      Graphics`Graphics`BarChart"][bardata = Table[Random[] - 0.5, {
        13}], BarOrientation -> Horizontal]];
            SetPropertyValue[{"zplot", "
      mathCommand"}, ToString[expr, InputForm]]]

The problem is that the bars are display vertically, even though I
specify BarOrientation -> Horizontal!

Thanks for your help.

Brett Patterson

  • Prev by Date: Re: NIntegrate and NDSolve
  • Next by Date: Re: Converting a mapping into a well-defined function
  • Previous by thread: Re: Using BarChart in a Widget
  • Next by thread: Re: Re: Using BarChart in a Widget