setSelection() のロックに問題があります。正しい値は問題なく選択されていますが、グラフはその後ロックされていません。
私が試してみました:
graph = new Dygraph(satgraph, data, { labels: [ "Score", "Percentage of people at this score"] });
.
.
.
graph.setSelection(intoStepSpace, { locked: [true] });
graph.setSelection(intoStepSpace, "", true);
graph.setSelection(intoStepSpace, null, true);
graph.setSelection(intoStepSpace, undefined, true);
and, just in case they want a highlightSeriesOpts instead of the name of a series:
graph.setSelection(intoStepSpace, { highlightSeriesOpts: [
{strokeWidth: 3},
{strokeBorderWidth: 1},
{highlightCircleSize: 5}]
}, true);}
これらはすべて、上記のコードが示すように順番にではなく、個別に試行されました。
おそらく、これは私が JavaScript のオプションのパラメーターを十分に理解していないことが問題ですが、この概念について読んだ後、私はそれが正しいと思います. 私が間違っていることは誰にとっても明らかですか?JavaScript を何にでも使ってから長い時間が経ちましたが、Dygraphs を使って JavaScript に戻ることができてうれしく思います。
助けてくれてありがとう。
-ブライアン・J・スティナー-