text: import Carbon from '../../../src/js/carbon';
  import { getDemoData } from '../data';
  
  export const renderSplineLine = (id) => {
    const lineDefault = Carbon.api.graph(
      getDemoData(`#${id}`, 'LINE_TIMESERIES'),
    );
    lineDefault.loadContent(
      Carbon.api.line(
        {
          type: Carbon.helpers.LINE_TYPE.SPLINE,
          ...getDemoData(`#${id}`, 'LINE_TIMESERIES').data[0],
        },
      ),
    );
    return lineDefault;
  };
  
  export const renderSplineLineRegion = (id) => {
    const lineDefault = Carbon.api.graph(
      getDemoData(`#${id}`, 'LINE_TIMESERIES'),
    );
    lineDefault.loadContent(
      Carbon.api.line(
        {
          type: Carbon.helpers.LINE_TYPE.SPLINE,
          ...getDemoData(`#${id}`, 'LINE_TIMESERIES').data[4],
        },
      ),
    );
    return lineDefault;
  };
  