gradio-pr-bot commited on
Commit
3762032
·
verified ·
1 Parent(s): faf7057

Upload folder using huggingface_hub

Browse files
6.0.0-dev.6/nativeplot/Index.svelte CHANGED
@@ -303,7 +303,6 @@
303
  }
304
 
305
  $effect(() => {
306
- console.log("effect 0 run");
307
  _data = gradio.props.value
308
  ? reformat_data(gradio.props.value, x_start, x_end)
309
  : [];
@@ -311,7 +310,6 @@
311
 
312
  let old_value = $state<PlotData | null>(gradio.props.value);
313
  $effect(() => {
314
- console.log("effect 1 run");
315
  if (old_value !== gradio.props.value && view) {
316
  old_value = gradio.props.value;
317
  view.data("data", _data).runAsync();
@@ -489,7 +487,6 @@
489
  void computed_style;
490
 
491
  if (mounted && chart_element) {
492
- console.log("Reloading chart due to prop change");
493
  untrack(() => {
494
  load_chart();
495
  });
@@ -646,7 +643,7 @@
646
  legend: {
647
  orient: "bottom",
648
  title: gradio.props.color_title,
649
- values: gradio.props.colors_in_legend || undefined
650
  },
651
  scale:
652
  gradio.props.value!.datatypes[gradio.props.color] ===
@@ -768,6 +765,7 @@
768
  title: gradio.props.title || undefined
769
  } as Spec;
770
  }
 
771
  /* eslint-enable complexity */
772
  </script>
773
 
@@ -806,8 +804,8 @@
806
  {/if}
807
  </IconButtonWrapper>
808
  {/if}
809
- <BlockTitle show_label={gradio.props.show_label} info={undefined}
810
- >{gradio.props.label}</BlockTitle
811
  >
812
 
813
  {#if gradio.props.value && is_browser}
 
303
  }
304
 
305
  $effect(() => {
 
306
  _data = gradio.props.value
307
  ? reformat_data(gradio.props.value, x_start, x_end)
308
  : [];
 
310
 
311
  let old_value = $state<PlotData | null>(gradio.props.value);
312
  $effect(() => {
 
313
  if (old_value !== gradio.props.value && view) {
314
  old_value = gradio.props.value;
315
  view.data("data", _data).runAsync();
 
487
  void computed_style;
488
 
489
  if (mounted && chart_element) {
 
490
  untrack(() => {
491
  load_chart();
492
  });
 
643
  legend: {
644
  orient: "bottom",
645
  title: gradio.props.color_title,
646
+ values: [...gradio.props.colors_in_legend] || undefined
647
  },
648
  scale:
649
  gradio.props.value!.datatypes[gradio.props.color] ===
 
765
  title: gradio.props.title || undefined
766
  } as Spec;
767
  }
768
+
769
  /* eslint-enable complexity */
770
  </script>
771
 
 
804
  {/if}
805
  </IconButtonWrapper>
806
  {/if}
807
+ <BlockTitle show_label={gradio.shared.show_label} info={undefined}
808
+ >{gradio.shared.label}</BlockTitle
809
  >
810
 
811
  {#if gradio.props.value && is_browser}