このフレームワークに関する記事はインターネット上にあまりなく、マニュアルもすべて英語で書かれているため、数は多くありませんが、初心者には読む時間とエネルギーがない可能性があります。リファレンスマニュアルをより充実させるために 多くの友人が知っているので、仕事が終わってから内蔵機能をざっくり翻訳してみました。 時間が急だったのでかなり大雑把に翻訳した箇所もあり、どうしても間違いが混じってしまいました。他の人を惹きつける方法として考えられているので、公式の例を参照して簡単に始められるので、わからないことは試してみてください。
JSChart 組み込み関数リファレンス
colorizeBars(array colordata) は、ヒストグラム内の各四角形の色を設定します。
colorizePie(array colordata) は、円グラフの各ブロックの色を設定します。最後に
draw()を使用し、全ての設定が完了したらこの関数を実行してチャートを描画します。
setAxisColor(string hexcolor) は軸の色を設定します。これは円グラフでは無効です。パラメータは 16 進数の色の値です。
resize(integer x, integer y) はチャートのサイズをリセットします。デフォルトの x/y は 400px/300px です。新しい値はデフォルト値の整数倍である必要があります。
setAxisNameColor(string hexcolor) は色を設定します。軸名の、円グラフが無効です。
setAxisNameFontSize(integer fontsize) は軸名のフォント サイズを設定します。これは円グラフでは無効です。デフォルトは 11 です。
setAxisNameX(string axisname) は、X 軸の名前を設定します。これは円グラフでは無効です。
setAxisNameY(string axisname) は、y 軸の名前を設定します。これは円グラフでは無効です。
setAxisPaddingBottom(integer padding) は、x 軸とコンテナーの底部の間の距離を設定します。デフォルトは 30 です。
setAxisPaddingLeft(integer padding) は、y 軸とコンテナーの左マージンの間の距離を設定します。デフォルトは 40 です。
setAxisPaddingRight(integer padding) は、チャートの右側とコンテナーの間の距離を設定します。デフォルトは 30 です。
setAxisPaddingTop(integer padding) は、チャートの上部とコンテナーの間の距離を設定します。デフォルトは 30 です。
setAxisValuesColor(string hexcolor) は、X/Y 軸の値の色を設定します。これは円グラフでは無効です。
setAxisValuesDecimals(整数 10 進数) は、曲線グラフの x/y 軸値、または棒グラフの y 軸値を設定します。デフォルトは auto です。
setAxisValuesFontSize(integer fontsize) は、2 つの軸の値のフォント サイズを設定します。これは円グラフでは無効です。
setAxisValuesNumberX(整数) は、X 軸に表示される値の数を設定します。この値は自動的に調整され、円グラフでは無効です。
setAxisValuesNumberY(整数) は、X 軸に表示される値の数を設定します。この値は自動的に調整され、円グラフでは無効です。
setAxisWidth(integer width) は軸の幅を設定します。デフォルトは 2 です。
setBackgroundColor(string hexcolor) は、チャート全体の背景色を設定します。デフォルトは #FFF です。
setBackgroundImage(string filename) はチャートの背景画像を設定します。画像は 2 つの軸に沿って自動的に繰り返されます。
setBarBorderColor(string hexcolor) は、ヒストグラムのバーの境界線の色を設定します。デフォルトは #C4C4C4 です。
setBarBorderWidth(integer width) は、ヒストグラムの境界線の幅を設定します。これはヒストグラムに対してのみ有効です。
setBarColor(string hexcolor) は、ヒストグラム内のすべての四角形の色を設定します。この関数は colorize() 関数によってオーバーライドされ、ヒストグラムに対してのみ有効です。
setBarOpacity(float opacity) はヒストグラムの透明度を設定します。値は 0 ~ 1 で、デフォルトは 0.9 です。
setBarSpacingRatio(integer rate) は、ヒストグラムの長方形の間隔を設定し、それによってヒストグラムの幅を制御します。値は 0 ~ 100 の整数です。デフォルトは 10 です。
setBarValues(booleanvalues) は、四角形の上部に値を表示するかどうかを設定します。
setBarValuesColor(string hexcolor) は、ヒストグラムの四角形の値の色を設定します。
setBarValuesDecimals(整数 10 進数) は、ヒストグラムの四角形の高さの値を設定します。値は 10 進数です。デフォルトは auto です。
setBarValuesFontSize(integer fontsize) は、ヒストグラムの長方形値のフォント サイズを設定します。デフォルトは 8 です。
setCanvasIdPrefix(string prefix) は、プロダクション要素の ID プレフィックスをカスタマイズします。デフォルトは JSChart です。この値は通常、変更する必要があります。
setDataArray(array data, string id) は、配列の形式でデータをチャートにインポートします。id パラメーターはオプションであり、同じ ID を設定できます。
setDataXML(string filename) は、xml 形式でデータをチャートにインポートします。
setFlagColor(string hexcolor) は、プロンプト フラグの色を設定します。
setFlagOffset(integer offset) は、プロンプト フラグのオフセットを設定します。円グラフにのみ適用されます。
setFlagOpacity(float opacity) はプロンプト記号の透明度を 0 から 1 の間で設定します。デフォルトは 0.5 です。
setFlagRadius(integer radius) はプロンプト記号の半径を設定します。デフォルトは 3 です。
setFlagWidth(integer width) は、プロンプトのロゴの境界線の幅を設定します。デフォルトは 1 です。
setGraphExtend(boolean extend) は、グラフ拡張機能をオンにするかどうかを設定します。オンにすると、二重軸とグリッド線が拡張されます。現在の長さの 1/15。これにより、スタイルがより美しくなります。
setGraphLabel(string label) は、カスタム チャートのウォーターマーク ラベルのテキストを設定します。
setGraphLabelColor(string hexcolor) は、カスタム チャートのウォーターマーク ラベルの色を設定します。
setGraphLabelFontSize(integer fontsize) は、カスタム グラフのウォーターマーク ラベルのフォント サイズを設定します。デフォルトは 8 です。
setGraphLabelOpacity(float opacity) は、カスタム グラフのウォーターマーク ラベルの透明度を設定します。
setGraphLabelPosition(string Position) は、カスタム チャートのウォーターマーク ラベルの位置を設定します。値の範囲は (nw、ne、sw、se) で、デフォルトは上部の ne です。右隅。
setGraphLabelShadowColor(string hexcolor) は、カスタム グラフの透かしラベルの影の色を設定します。
setGrid(boolean grid) sets whether to display grid lines.
setGridColor(string hexcolor) sets the color of the grid lines, the default is #C6C6C6.
setGridOpacity(float opacity) sets the grid line transparency, the value is between 0 and 1, and the default is 0.5.
setIntervalEndX(integer end) sets the end value of the x-axis. If a starting value is set, this value must be greater than the starting value.
setIntervalEndY(integer end) sets the end value of the y-axis. If a starting value is set, this value must be greater than the starting value.
setIntervalStartX(integer start) sets the starting value of the x-axis. If the end value is set, this value must be smaller than the end value.
setIntervalStartY(integer start) sets the starting value of the y-axis. If the end value is set, this value must be smaller than the end value.
setLabelX(array label) adds a label on the x-axis. Its parameter is an array composed of two values. The first parameter is the position of the label on the x-axis, and the second value is the content displayed by the label.
setLabelY(array label) adds a label on the y-axis. Its parameter is an array composed of two values. The first parameter is the position of the label on the y-axis, and the second value is the content displayed by the label.
setLineColor(string hexcolor, string id) sets the color of the curve in the graph. See Curve Chart Example 3.
setLineOpacity(float opacity, string id) sets the transparency of the curve in the curve chart, the value is between 0 and 1, and the default is 0.9. The meaning of parameter id is the same as above.
setLineWidth(integer width, string id) sets the width of the curve in the graph, the default is 2.
setPieOpacity(float opacity) sets the transparency of the pie chart, the value is 0~1, the default is 1.
setPiePosition( integer x, integer y) sets the position of the pie chart within the container, the default is 0, which is located in the center of the container.
setPieRadius(integer radius) sets the radius of the pie chart.
setPieUnitsColor(string hexcolor) sets the color of the pie chart block name.
setPieUnitsFontSize(integer fontsize) sets the font size of the pie chart block name.
setPieUnitsOffset(integer offset) sets the position of the pie chart block name. Integers move out and negative numbers move in.
setPieValuesColor(string hexcolor) sets the color of pie chart values.
setPieValuesDecimals(integer decimals) sets the total value on the pie chart.
setPieValuesFontSize(integer fontsize) sets the font size of the values on the pie chart.
setPieValuesOffset(integer offset) sets the offset of the value on the pie chart. Integers move outwards and negative numbers move inward. The default is -20.
setShowXValues(boolean show) whether to display the scale value on the x-axis.
setShowYValues(boolean show) whether to display the scale value on the y-axis.
setSize(integer x, integer y) predefines the size of the container and needs to be used before the draw() function.
setTextPaddingBottom(integer padding) sets the distance between the label text on the x-axis and the bottom of the container, the default is 1.
setTextPaddingLeft(integer padding) sets the distance between the label text on the y-axis and the left side of the container, the default is 8.
setTextPaddingTop (integer padding) Set the distance between the top of the chart and the top of the container, the default is 15.
setTitle(string title) Set the title of the chart, the default is "JSChart".
setTitleColor(string hexcolor) sets the title color.
setTitleFontSize(integer fontsize) sets the title font size.
setTitlePosition(string position) sets the title position, value range (center, left, right.).
setTooltip(array tooltip) sets the tip on the x-axis.
setTooltipBackground(string hexcolor) sets the prompt background.
setTooltipBorder(string css) sets the prompt background border style. The parameter is a css expression. The default is 1px solid #d3d3d3.
setTooltipFontColor(string hexcolor) sets the color of the prompt content.
setTooltipFontFamily(string font) sets the prompt font style, the default is arial.
setTooltipFontSize(integer fontsize) sets the prompt content font size, the default is 12.
setTooltipOffset(integer offset) sets the prompt content offset, the default is 7.
setTooltipOpacity(float opacity) sets the tip transparency, the default is 0.7.
setTooltipPadding(string css) sets the tip padding style, the default is 2px 5px.
setTooltipPosition(string position) sets the tip position, the value range is nw, ne, sw and se, the default is se.
--Complete
JSChart official website http://www.jscharts.com/There is a complete manual and examples on it.
As for the shortcomings of JSChart not supporting Chinese, experts have already provided extension scripts, which are easy to find online and can be downloaded here.
After downloading, you can only reference jscharts_mb.js, or you can reference jscharts.js first, and then jscharts.plug.mb.js. You can choose one of the two methods.

JavaScript文字列置換法とFAQの詳細な説明 この記事では、javaScriptの文字列文字を置き換える2つの方法について説明します:内部JavaScriptコードとWebページの内部HTML。 JavaScriptコード内の文字列を交換します 最も直接的な方法は、置換()メソッドを使用することです。 str = str.replace( "find"、 "置換"); この方法は、最初の一致のみを置き換えます。すべての一致を置き換えるには、正規表現を使用して、グローバルフラグGを追加します。 str = str.replace(/fi

このチュートリアルでは、カスタムGoogle検索APIをブログまたはWebサイトに統合する方法を示し、標準のWordPressテーマ検索関数よりも洗練された検索エクスペリエンスを提供します。 驚くほど簡単です!検索をyに制限することができます

この記事シリーズは、2017年半ばに最新の情報と新鮮な例で書き直されました。 このJSONの例では、JSON形式を使用してファイルに単純な値を保存する方法について説明します。 キー価値ペア表記を使用して、あらゆる種類を保存できます

コードプレゼンテーションを強化する:開発者向けの10個の構文蛍光物 ウェブサイトやブログでコードスニペットを共有することは、開発者にとって一般的な慣行です。 適切な構文ハイライターを選択すると、読みやすさと視覚的な魅力を大幅に改善できます。 t

それで、あなたはここで、Ajaxと呼ばれるこのことについてすべてを学ぶ準備ができています。しかし、それは正確には何ですか? Ajaxという用語は、動的でインタラクティブなWebコンテンツを作成するために使用されるテクノロジーのゆるいグループ化を指します。 Ajaxという用語は、もともとJesse Jによって造られました

楽なWebページレイアウトのためにjQueryを活用する:8本質的なプラグイン jQueryは、Webページのレイアウトを大幅に簡素化します。 この記事では、プロセスを合理化する8つの強力なjQueryプラグイン、特に手動のウェブサイトの作成に役立ちます

この記事では、JavaScriptとJQuery Model-View-Controller(MVC)フレームワークに関する10を超えるチュートリアルの厳選された選択を紹介します。これは、新年にWeb開発スキルを向上させるのに最適です。 これらのチュートリアルは、Foundatioのさまざまなトピックをカバーしています

コアポイント これは通常、メソッドを「所有」するオブジェクトを指しますが、関数がどのように呼び出されるかに依存します。 現在のオブジェクトがない場合、これはグローバルオブジェクトを指します。 Webブラウザでは、ウィンドウで表されます。 関数を呼び出すと、これはグローバルオブジェクトを維持しますが、オブジェクトコンストラクターまたはそのメソッドを呼び出すとき、これはオブジェクトのインスタンスを指します。 call()、apply()、bind()などのメソッドを使用して、このコンテキストを変更できます。これらのメソッドは、与えられたこの値とパラメーターを使用して関数を呼び出します。 JavaScriptは優れたプログラミング言語です。数年前、この文はそうでした


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

Safe Exam Browser
Safe Exam Browser は、オンライン試験を安全に受験するための安全なブラウザ環境です。このソフトウェアは、あらゆるコンピュータを安全なワークステーションに変えます。あらゆるユーティリティへのアクセスを制御し、学生が無許可のリソースを使用するのを防ぎます。

ZendStudio 13.5.1 Mac
強力な PHP 統合開発環境

SublimeText3 英語版
推奨: Win バージョン、コードプロンプトをサポート!

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境

ドリームウィーバー CS6
ビジュアル Web 開発ツール
