useStrategy(domId, chartOption, theme) {
    try {
      const { name: chartUniqueKey } = chartOption;

      if (typeof chartUniqueKey !== "string")
        throw new Error("The [name] attribute must be included in option.[name] is used to indicate a chart.");

      if (!this._strategies.has(chartUniqueKey))
        throw new Error(`The [${chartUniqueKey}] chart doesn't exist in the chart factory.`);

      return this._strategies.get(chartUniqueKey).init(domId, chartOption, theme);
    } catch (e) {
      console.error(e);
    }
  }
/**
   * use chart
   * @param {string} domId the dom'id of a chart container
   * @param {object} chartOption the option of chart
   * @param {object} theme the theme config of chart
   */
use chart
@param {string} domId the dom'id of a chart container
@param {object} chartOption the option of chart
@param {object} theme the theme config of chart
use chart @param { string } domId the dom ' id of a chart container @param { object } chartOption the option of chart @param { object } theme the theme config of chart
useStrategy(domId, chartOption, theme) {
    try {
      const { name: chartUniqueKey } = chartOption;
      if (typeof chartUniqueKey !== "string")
        throw new Error("The [name] attribute must be included in option.[name] is used to indicate a chart.");
      if (!this._strategies.has(chartUniqueKey))
        throw new Error(`The [${chartUniqueKey}] chart doesn't exist in the chart factory.`);
      return this._strategies.get(chartUniqueKey).init(domId, chartOption, theme);
    } catch (e) {
      console.error(e);
    }
  }
useStrategy ( domId , chartOption , theme ) { try { const { name : chartUniqueKey } = chartOption ; if ( typeof chartUniqueKey !== "string" ) throw new Error ( "The [name] attribute must be included in option.[name] is used to indicate a chart." ) ; if ( ! this . _strategies . has ( chartUniqueKey ) ) throw new Error ( ` ${ chartUniqueKey } ` ) ; return this . _strategies . get ( chartUniqueKey ) . init ( domId , chartOption , theme ) ; } catch ( e ) { console . error ( e ) ; } }
use chart
 @param {string} domId the dom'id of a chart container
 @param {object} chartOption the option of chart
 @param {object} theme the theme config of chart
use chart @param { string } domId the dom ' id of a chart container @param { object } chartOption the option of chart @param { object } theme the theme config of chart