You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/02/09 23:07:10 UTC
[GitHub] graceguo-supercat closed pull request #2381: Allow users to import CSV as datasource
graceguo-supercat closed pull request #2381: Allow users to import CSV as datasource
URL: https://github.com/apache/incubator-superset/pull/2381
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/babel/es/LC_MESSAGES/messages.po b/babel/es/LC_MESSAGES/messages.po
new file mode 100644
index 0000000000..1424b37fdf
--- /dev/null
+++ b/babel/es/LC_MESSAGES/messages.po
@@ -0,0 +1,1411 @@
+# Spanish translations for PROJECT.
+# Copyright (C) 2017 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR <EM...@ADDRESS>, 2017.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2017-04-20 09:53+0200\n"
+"PO-Revision-Date: 2017-06-01 07:35-0400\n"
+"Last-Translator: FULL NAME <EM...@ADDRESS>\n"
+"Language: es\n"
+"Language-Team: es <LL...@li.org>\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 2.3.4\n"
+
+#: superset/db_engine_specs.py:191 superset/db_engine_specs.py:222
+#: superset/db_engine_specs.py:266 superset/db_engine_specs.py:313
+#: superset/db_engine_specs.py:357 superset/db_engine_specs.py:763
+#: superset/db_engine_specs.py:799 superset/db_engine_specs.py:831
+msgid "Time Column"
+msgstr ""
+
+#: superset/db_engine_specs.py:192 superset/db_engine_specs.py:223
+#: superset/db_engine_specs.py:314 superset/db_engine_specs.py:358
+#: superset/db_engine_specs.py:764 superset/db_engine_specs.py:832
+#: superset/models.py:433
+msgid "second"
+msgstr ""
+
+#: superset/db_engine_specs.py:193 superset/db_engine_specs.py:226
+#: superset/db_engine_specs.py:317 superset/db_engine_specs.py:360
+#: superset/db_engine_specs.py:766 superset/db_engine_specs.py:800
+#: superset/db_engine_specs.py:834 superset/models.py:434
+msgid "minute"
+msgstr ""
+
+#: superset/db_engine_specs.py:194 superset/db_engine_specs.py:230
+#: superset/db_engine_specs.py:319 superset/db_engine_specs.py:362
+#: superset/db_engine_specs.py:772 superset/db_engine_specs.py:802
+#: superset/db_engine_specs.py:836
+msgid "hour"
+msgstr ""
+
+#: superset/db_engine_specs.py:195 superset/db_engine_specs.py:235
+#: superset/db_engine_specs.py:267 superset/db_engine_specs.py:321
+#: superset/db_engine_specs.py:364 superset/db_engine_specs.py:774
+#: superset/db_engine_specs.py:804 superset/db_engine_specs.py:838
+msgid "day"
+msgstr ""
+
+#: superset/db_engine_specs.py:196 superset/db_engine_specs.py:241
+#: superset/db_engine_specs.py:268 superset/db_engine_specs.py:322
+#: superset/db_engine_specs.py:366 superset/db_engine_specs.py:776
+#: superset/db_engine_specs.py:806 superset/db_engine_specs.py:840
+msgid "week"
+msgstr ""
+
+#: superset/db_engine_specs.py:197 superset/db_engine_specs.py:243
+#: superset/db_engine_specs.py:270 superset/db_engine_specs.py:324
+#: superset/db_engine_specs.py:368 superset/db_engine_specs.py:778
+#: superset/db_engine_specs.py:808 superset/db_engine_specs.py:842
+msgid "month"
+msgstr ""
+
+#: superset/db_engine_specs.py:198 superset/db_engine_specs.py:245
+#: superset/db_engine_specs.py:326 superset/db_engine_specs.py:370
+#: superset/db_engine_specs.py:780 superset/db_engine_specs.py:810
+#: superset/db_engine_specs.py:844 superset/models.py:409
+msgid "quarter"
+msgstr ""
+
+#: superset/db_engine_specs.py:199 superset/db_engine_specs.py:249
+#: superset/db_engine_specs.py:328 superset/db_engine_specs.py:782
+#: superset/db_engine_specs.py:812
+msgid "year"
+msgstr ""
+
+#: superset/db_engine_specs.py:330
+msgid "week_start_monday"
+msgstr ""
+
+#: superset/db_engine_specs.py:372 superset/db_engine_specs.py:846
+#: superset/models.py:410
+msgid "week_ending_saturday"
+msgstr ""
+
+#: superset/db_engine_specs.py:375 superset/db_engine_specs.py:849
+#: superset/models.py:412
+msgid "week_start_sunday"
+msgstr ""
+
+#: superset/db_engine_specs.py:768
+msgid "5 minute"
+msgstr ""
+
+#: superset/db_engine_specs.py:770
+msgid "half hour"
+msgstr ""
+
+#: superset/viz.py:306 superset/viz.py:367
+msgid "Table View"
+msgstr ""
+
+#: superset/viz.py:359 superset/viz.py:429
+msgid "Pivot Table"
+msgstr ""
+
+#: superset/viz.py:408 superset/viz.py:491
+msgid "Markup"
+msgstr ""
+
+#: superset/viz.py:427
+msgid "Separator"
+msgstr ""
+
+#: superset/viz.py:443 superset/viz.py:519
+msgid "Word Cloud"
+msgstr ""
+
+#: superset/viz.py:466 superset/viz.py:551
+msgid "Treemap"
+msgstr ""
+
+#: superset/viz.py:492
+msgid "Calendar Heatmap"
+msgstr ""
+
+#: superset/viz.py:550 superset/viz.py:666
+msgid "Box Plot"
+msgstr ""
+
+#: superset/viz.py:639 superset/viz.py:773
+msgid "Bubble Chart"
+msgstr ""
+
+#: superset/viz.py:687
+msgid "Bullet Chart"
+msgstr ""
+
+#: superset/viz.py:736 superset/viz.py:842
+msgid "Big Number with Trendline"
+msgstr ""
+
+#: superset/viz.py:765 superset/viz.py:892
+msgid "Big Number"
+msgstr ""
+
+#: superset/viz.py:792 superset/viz.py:938
+msgid "Time Series - Line Chart"
+msgstr ""
+
+#: superset/viz.py:919
+msgid "Time Series - Dual Axis Line Chart"
+msgstr ""
+
+#: superset/viz.py:994 superset/viz.py:1091
+msgid "Time Series - Bar Chart"
+msgstr ""
+
+#: superset/viz.py:1002 superset/viz.py:1111
+msgid "Time Series - Percent Change"
+msgstr ""
+
+#: superset/viz.py:1010 superset/viz.py:1119
+msgid "Time Series - Stacked"
+msgstr ""
+
+#: superset/viz.py:1019 superset/viz.py:1138
+msgid "Distribution - NVD3 - Pie Chart"
+msgstr ""
+
+#: superset/viz.py:1037
+msgid "Histogram"
+msgstr ""
+
+#: superset/viz.py:1062 superset/viz.py:1174
+msgid "Distribution - Bar Chart"
+msgstr ""
+
+#: superset/viz.py:1129 superset/viz.py:1261
+msgid "Sunburst"
+msgstr ""
+
+#: superset/viz.py:1162 superset/viz.py:1327
+msgid "Sankey"
+msgstr ""
+
+#: superset/viz.py:1211 superset/viz.py:1391
+msgid "Directed Force Layout"
+msgstr ""
+
+#: superset/viz.py:1232 superset/viz.py:1433
+msgid "World Map"
+msgstr ""
+
+#: superset/templates/superset/explore.html:147 superset/viz.py:1282
+#: superset/viz.py:1507
+msgid "Filters"
+msgstr ""
+
+#: superset/viz.py:1317 superset/viz.py:1555
+msgid "iFrame"
+msgstr ""
+
+#: superset/viz.py:1334 superset/viz.py:1573
+msgid "Parallel Coordinates"
+msgstr ""
+
+#: superset/viz.py:1359 superset/viz.py:1609
+msgid "Heatmap"
+msgstr ""
+
+#: superset/forms.py:457 superset/forms.py:472
+msgid "1 year ago"
+msgstr ""
+
+#: superset/forms.py:459
+msgid ""
+"Datetime column not provided as part table configuration and is required "
+"by this type of chart"
+msgstr ""
+
+#: superset/forms.py:464
+msgid "Until"
+msgstr ""
+
+#: superset/forms.py:476
+msgid "Max Bubble Size"
+msgstr ""
+
+#: superset/forms.py:489
+msgid "Whisker/outlier options"
+msgstr ""
+
+#: superset/forms.py:491
+msgid "Determines how whiskers and outliers are calculated."
+msgstr ""
+
+#: superset/forms.py:494
+msgid "Tukey"
+msgstr ""
+
+#: superset/forms.py:495
+msgid "Min/max (no outliers)"
+msgstr ""
+
+#: superset/forms.py:496
+msgid "2/98 percentiles"
+msgstr ""
+
+#: superset/forms.py:497
+msgid "9/91 percentiles"
+msgstr ""
+
+#: superset/forms.py:501
+msgid "Ratio"
+msgstr ""
+
+#: superset/forms.py:503
+msgid "Target aspect ratio for treemap tiles."
+msgstr ""
+
+#: superset/forms.py:506 superset/viz.py:856 superset/viz.py:905
+msgid "Number format"
+msgstr ""
+
+#: superset/forms.py:516
+msgid ""
+"D3 format syntax for numbers https: //github.com/mbostock/\n"
+"d3/wiki/Formatting"
+msgstr ""
+
+#: superset/forms.py:521
+msgid "Row limit"
+msgstr ""
+
+#: superset/forms.py:527
+msgid "Series limit"
+msgstr ""
+
+#: superset/forms.py:530
+msgid "Limits the number of time series that get displayed"
+msgstr ""
+
+#: superset/forms.py:534
+msgid "Rolling"
+msgstr ""
+
+#: superset/forms.py:537
+msgid ""
+"Defines a rolling window function to apply, works along with the "
+"[Periods] text box"
+msgstr ""
+
+#: superset/forms.py:542
+msgid "Periods"
+msgstr ""
+
+#: superset/forms.py:544
+msgid ""
+"Defines the size of the rolling window function, relative to the time "
+"granularity selected"
+msgstr ""
+
+#: superset/forms.py:549 superset/viz.py:1192
+msgid "Series"
+msgstr ""
+
+#: superset/forms.py:552
+msgid ""
+"Defines the grouping of entities. Each serie is shown as a specific color"
+" on the chart and has a legend toggle"
+msgstr ""
+
+#: superset/forms.py:558
+msgid "Entity"
+msgstr ""
+
+#: superset/forms.py:561
+msgid "This define the element to be plotted on the chart"
+msgstr ""
+
+#: superset/forms.py:564
+msgid "X Axis"
+msgstr ""
+
+#: superset/forms.py:567
+msgid "Metric assigned to the [X] axis"
+msgstr ""
+
+#: superset/forms.py:570
+msgid "Y Axis"
+msgstr ""
+
+#: superset/forms.py:573
+msgid "Metric assigned to the [Y] axis"
+msgstr ""
+
+#: superset/forms.py:576
+msgid "Bubble Size"
+msgstr ""
+
+#: superset/forms.py:581
+msgid "URL"
+msgstr ""
+
+#: superset/forms.py:582
+msgid ""
+"The URL, this field is templated, so you can integrate {{ width }} and/or"
+" {{ height }} in your URL string."
+msgstr ""
+
+#: superset/forms.py:589
+msgid "X Axis Label"
+msgstr ""
+
+#: superset/forms.py:593
+msgid "Y Axis Label"
+msgstr ""
+
+#: superset/forms.py:597
+msgid "Custom WHERE clause"
+msgstr ""
+
+#: superset/forms.py:599
+msgid ""
+"The text in this box gets included in your query's WHERE clause, as an "
+"AND to other criteria. You can include complex expression, parenthesis "
+"and anything else supported by the backend it is directed towards."
+msgstr ""
+
+#: superset/forms.py:606
+msgid "Custom HAVING clause"
+msgstr ""
+
+#: superset/forms.py:608
+msgid ""
+"The text in this box gets included in your query's HAVING clause, as an "
+"AND to other criteria. You can include complex expression, parenthesis "
+"and anything else supported by the backend it is directed towards."
+msgstr ""
+
+#: superset/forms.py:615
+msgid "Comparison Period Lag"
+msgstr ""
+
+#: superset/forms.py:616
+msgid "Based on granularity, number of time periods to compare against"
+msgstr ""
+
+#: superset/forms.py:621
+msgid "Comparison suffix"
+msgstr ""
+
+#: superset/forms.py:622
+msgid "Suffix to apply after the percentage display"
+msgstr ""
+
+#: superset/forms.py:625
+msgid "Table Timestamp Format"
+msgstr ""
+
+#: superset/forms.py:628
+msgid "Timestamp Format"
+msgstr ""
+
+#: superset/forms.py:631
+msgid "Series Height"
+msgstr ""
+
+#: superset/forms.py:634
+msgid "Pixel height of each series"
+msgstr ""
+
+#: superset/forms.py:637
+msgid "X axis format"
+msgstr ""
+
+#: superset/forms.py:640 superset/forms.py:655
+msgid ""
+"D3 format syntax for y axis https: //github.com/mbostock/\n"
+"d3/wiki/Formatting"
+msgstr ""
+
+#: superset/forms.py:645
+msgid "Y axis format"
+msgstr ""
+
+#: superset/forms.py:660
+msgid "Markup Type"
+msgstr ""
+
+#: superset/forms.py:662
+msgid "markdown"
+msgstr ""
+
+#: superset/forms.py:663
+msgid "html"
+msgstr ""
+
+#: superset/forms.py:666
+msgid "Pick your favorite markup language"
+msgstr ""
+
+#: superset/forms.py:669
+msgid "Rotation"
+msgstr ""
+
+#: superset/forms.py:671
+msgid "random"
+msgstr ""
+
+#: superset/forms.py:672
+msgid "flat"
+msgstr ""
+
+#: superset/forms.py:673
+msgid "square"
+msgstr ""
+
+#: superset/forms.py:676
+msgid "Rotation to apply to words in the cloud"
+msgstr ""
+
+#: superset/forms.py:679
+msgid "Line Style"
+msgstr ""
+
+#: superset/forms.py:681
+msgid "linear"
+msgstr ""
+
+#: superset/forms.py:682
+msgid "basis"
+msgstr ""
+
+#: superset/forms.py:683
+msgid "cardinal"
+msgstr ""
+
+#: superset/forms.py:684
+msgid "monotone"
+msgstr ""
+
+#: superset/forms.py:685
+msgid "step-before"
+msgstr ""
+
+#: superset/forms.py:686
+msgid "step-after"
+msgstr ""
+
+#: superset/forms.py:689
+msgid "Line interpolation as defined by d3.js"
+msgstr ""
+
+#: superset/forms.py:692
+msgid "Code"
+msgstr ""
+
+#: superset/forms.py:693
+msgid "Put your code here"
+msgstr ""
+
+#: superset/forms.py:697
+msgid "Aggregation function"
+msgstr ""
+
+#: superset/forms.py:702
+msgid "max"
+msgstr ""
+
+#: superset/forms.py:704
+msgid "stdev"
+msgstr ""
+
+#: superset/forms.py:705
+msgid "var"
+msgstr ""
+
+#: superset/forms.py:708
+msgid ""
+"Aggregate function to apply when pivoting and computing the total rows "
+"and columns"
+msgstr ""
+
+#: superset/forms.py:713
+msgid "Font Size From"
+msgstr ""
+
+#: superset/forms.py:715
+msgid "Font size for the smallest value in the list"
+msgstr ""
+
+#: superset/forms.py:718
+msgid "Font Size To"
+msgstr ""
+
+#: superset/forms.py:720
+msgid "Font size for the biggest value in the list"
+msgstr ""
+
+#: superset/forms.py:723
+msgid "Range Filter"
+msgstr ""
+
+#: superset/forms.py:725
+msgid "Whether to display the time range interactive selector"
+msgstr ""
+
+#: superset/forms.py:729
+msgid "Data Table"
+msgstr ""
+
+#: superset/forms.py:731
+msgid "Whether to display the interactive data table"
+msgstr ""
+
+#: superset/forms.py:734
+msgid "Search Box"
+msgstr ""
+
+#: superset/forms.py:736
+msgid "Whether to include a client side search box"
+msgstr ""
+
+#: superset/forms.py:740
+msgid "Show Bubbles"
+msgstr ""
+
+#: superset/forms.py:742
+msgid "Whether to display bubbles on top of countries"
+msgstr ""
+
+#: superset/forms.py:746
+msgid "Legend"
+msgstr ""
+
+#: superset/forms.py:748
+msgid "Whether to display the legend (toggles)"
+msgstr ""
+
+#: superset/forms.py:751
+msgid "X bounds"
+msgstr ""
+
+#: superset/forms.py:753
+msgid "Whether to display the min and max values of the X axis"
+msgstr ""
+
+#: superset/forms.py:757
+msgid "Rich Tooltip"
+msgstr ""
+
+#: superset/forms.py:759
+msgid "The rich tooltip shows a list of all series for that point in time"
+msgstr ""
+
+#: superset/forms.py:764
+msgid "Y Axis Zero"
+msgstr ""
+
+#: superset/forms.py:766
+msgid "Force the Y axis to start at 0 instead of the minimum value"
+msgstr ""
+
+#: superset/forms.py:771
+msgid "Y Log"
+msgstr ""
+
+#: superset/forms.py:773
+msgid "Use a log scale for the Y axis"
+msgstr ""
+
+#: superset/forms.py:776
+msgid "X Log"
+msgstr ""
+
+#: superset/forms.py:778
+msgid "Use a log scale for the X axis"
+msgstr ""
+
+#: superset/forms.py:781
+msgid "Donut"
+msgstr ""
+
+#: superset/forms.py:783
+msgid "Do you want a donut or a pie?"
+msgstr ""
+
+#: superset/forms.py:786
+msgid "Contribution"
+msgstr ""
+
+#: superset/forms.py:788
+msgid "Compute the contribution to the total"
+msgstr ""
+
+#: superset/forms.py:791
+msgid "Period Ratio"
+msgstr ""
+
+#: superset/forms.py:794
+msgid ""
+"This fields acts a Superset view, meaning that Superset will run a query "
+"against this string as a subquery."
+msgstr ""
+
+#: superset/forms.py:799
+msgid "Time Shift"
+msgstr ""
+
+#: superset/forms.py:801
+msgid ""
+"Predicate applied when fetching distinct value to populate the filter "
+"control component. Supports jinja template syntax. Applies only when "
+"`Enable Filter Select` is on."
+msgstr ""
+
+#: superset/forms.py:808
+msgid "Subheader"
+msgstr ""
+
+#: superset/forms.py:809
+msgid "Description text that shows up below your Big Number"
+msgstr ""
+
+#: superset/forms.py:816
+msgid ""
+"'count' is COUNT(*) if a group by is used. Numerical columns will be "
+"aggregated with the aggregator. Non-numerical columns will be used to "
+"label points. Leave empty to get a count of points in each cluster."
+msgstr ""
+
+#: superset/forms.py:832
+msgid "Base layer map style"
+msgstr ""
+
+#: superset/forms.py:835
+msgid "Clustering Radius"
+msgstr ""
+
+#: superset/forms.py:848
+msgid ""
+"The radius (in pixels) the algorithm uses to define a cluster. Choose 0 "
+"to turn off clustering, but beware that a large number of points (>1000) "
+"will cause lag."
+msgstr ""
+
+#: superset/forms.py:854
+msgid "Point Radius"
+msgstr ""
+
+#: superset/forms.py:857
+msgid ""
+"The table was created. As part of this two phase configuration process, "
+"you should now click the edit button by the new table to configure it."
+msgstr ""
+
+#: superset/forms.py:863
+msgid "Point Radius Unit"
+msgstr ""
+
+#: superset/forms.py:870
+msgid "The unit of measure for the specified point radius"
+msgstr ""
+
+#: superset/forms.py:873
+msgid "Opacity"
+msgstr ""
+
+#: superset/forms.py:875
+msgid "Opacity of all clusters, points, and labels. Between 0 and 1."
+msgstr ""
+
+#: superset/forms.py:880
+msgid "Zoom"
+msgstr ""
+
+#: superset/forms.py:883
+msgid "Zoom level of the map"
+msgstr ""
+
+#: superset/forms.py:887
+msgid "Default latitude"
+msgstr ""
+
+#: superset/forms.py:889
+msgid "Latitude of default viewport"
+msgstr ""
+
+#: superset/forms.py:893
+msgid "Default longitude"
+msgstr ""
+
+#: superset/forms.py:895
+msgid "Longitude of default viewport"
+msgstr ""
+
+#: superset/forms.py:899
+msgid "Live render"
+msgstr ""
+
+#: superset/forms.py:901
+msgid "Points and clusters will update as viewport is being changed"
+msgstr ""
+
+#: superset/forms.py:905
+msgid "RGB Color"
+msgstr ""
+
+#: superset/forms.py:915
+msgid "The color for points and clusters in RGB"
+msgstr ""
+
+#: superset/forms.py:978
+msgid "SQL"
+msgstr ""
+
+#: superset/forms.py:980
+msgid "This section exposes ways to include snippets of SQL in your query"
+msgstr ""
+
+#: superset/forms.py:991
+msgid "Time Grain"
+msgstr ""
+
+#: superset/forms.py:994
+msgid ""
+"Allow users to run synchronous queries, this is the default and should "
+"work well for queries that can be executed within a web request scope "
+"(<~1 minute)"
+msgstr ""
+
+#: superset/forms.py:1027 superset/forms.py:1031
+msgid "Filter 1"
+msgstr ""
+
+#: superset/forms.py:1036
+msgid "Super"
+msgstr ""
+
+#: superset/forms.py:1040
+msgid "Time"
+msgstr ""
+
+#: superset/forms.py:1045
+msgid "Time related form attributes"
+msgstr ""
+
+#: superset/models.py:620
+msgid ""
+"Allow users to run queries, against an async backend. This assumes that "
+"you have a Celery worker setup as well as a results backend."
+msgstr ""
+
+#: superset/models.py:1328
+msgid "No data was returned."
+msgstr ""
+
+#: superset/views.py:203
+msgid ""
+"Allow users to run non-SELECT statements (UPDATE, DELETE, CREATE, ...) in"
+" SQL Lab"
+msgstr ""
+
+#: superset/views.py:230 superset/views.py:259
+msgid "Column"
+msgstr ""
+
+#: superset/views.py:231 superset/views.py:296 superset/views.py:336
+msgid "Verbose Name"
+msgstr ""
+
+#: superset/views.py:232 superset/views.py:295 superset/views.py:335
+#: superset/views.py:537 superset/views.py:691
+msgid "Description"
+msgstr ""
+
+#: superset/views.py:233 superset/views.py:262
+msgid "Groupable"
+msgstr ""
+
+#: superset/views.py:234 superset/views.py:263
+msgid "Filterable"
+msgstr ""
+
+#: superset/views.py:235 superset/views.py:299 superset/views.py:433
+#: superset/views.py:543
+msgid "Table"
+msgstr ""
+
+#: superset/views.py:236 superset/views.py:264
+msgid "Count Distinct"
+msgstr ""
+
+#: superset/views.py:237 superset/views.py:265
+msgid "Sum"
+msgstr ""
+
+#: superset/views.py:238 superset/views.py:266
+msgid "Min"
+msgstr ""
+
+#: superset/views.py:239 superset/views.py:267
+msgid "Max"
+msgstr ""
+
+#: superset/views.py:240
+msgid "Expression"
+msgstr ""
+
+#: superset/views.py:241
+msgid "Is temporal"
+msgstr ""
+
+#: superset/views.py:242
+msgid "Datetime Format"
+msgstr ""
+
+#: superset/views.py:243
+msgid "Database Expression"
+msgstr ""
+
+#: superset/views.py:260 superset/views.py:297 superset/views.py:337
+#: superset/views.py:568
+msgid "Type"
+msgstr ""
+
+#: superset/views.py:261 superset/views.py:536
+msgid "Datasource"
+msgstr ""
+
+#: superset/views.py:286 superset/views.py:328
+msgid ""
+"When allowing CREATE TABLE AS option in SQL Lab, this option forces the "
+"table to be created in this schema"
+msgstr ""
+
+#: superset/views.py:298
+msgid "SQL Expression"
+msgstr ""
+
+#: superset/views.py:338 superset/views.py:656
+msgid "JSON"
+msgstr ""
+
+#: superset/views.py:339
+msgid "Druid Datasource"
+msgstr ""
+
+#: superset/views.py:378 superset/views.py:435
+msgid "Database"
+msgstr ""
+
+#: superset/views.py:379
+msgid "SQL link"
+msgstr ""
+
+#: superset/views.py:380 superset/views.py:534 superset/views.py:610
+msgid "Creator"
+msgstr ""
+
+#: superset/views.py:381 superset/views.py:436
+msgid "Last Changed"
+msgstr ""
+
+#: superset/views.py:382
+msgid "SQLAlchemy URI"
+msgstr ""
+
+#: superset/views.py:383 superset/views.py:442 superset/views.py:533
+#: superset/views.py:697
+msgid "Cache Timeout"
+msgstr ""
+
+#: superset/views.py:384
+msgid "Extra"
+msgstr ""
+
+#: superset/views.py:434
+msgid "Changed By"
+msgstr ""
+
+#: superset/views.py:437
+msgid "SQL Editor"
+msgstr ""
+
+#: superset/views.py:438 superset/views.py:693
+msgid "Is Featured"
+msgstr ""
+
+#: superset/views.py:439
+msgid "Schema"
+msgstr ""
+
+#: superset/views.py:440 superset/views.py:695
+msgid "Default Endpoint"
+msgstr ""
+
+#: superset/views.py:441
+msgid "Offset"
+msgstr ""
+
+#: superset/views.py:482 superset/views.py:690
+msgid "Cluster"
+msgstr ""
+
+#: superset/views.py:483
+msgid "Coordinator Host"
+msgstr ""
+
+#: superset/views.py:484
+msgid "Coordinator Port"
+msgstr ""
+
+#: superset/views.py:485
+msgid "Coordinator Endpoint"
+msgstr ""
+
+#: superset/views.py:486
+msgid "Broker Host"
+msgstr ""
+
+#: superset/views.py:487
+msgid "Broker Port"
+msgstr ""
+
+#: superset/views.py:488
+msgid "Broker Endpoint"
+msgstr ""
+
+#: superset/views.py:522
+msgid ""
+"These parameters are generated dynamically when clicking the save or "
+"overwrite button in the explore view. This JSON object is exposed here "
+"for reference and for power users who may want to alter specific "
+"parameters."
+msgstr ""
+
+#: superset/views.py:527
+msgid "Duration (in seconds) of the caching timeout for this slice."
+msgstr ""
+
+#: superset/views/core.py:347
+msgid "Last Modified"
+msgstr ""
+
+#: superset/views.py:539 superset/views.py:609
+msgid "Owners"
+msgstr ""
+
+#: superset/views.py:540
+msgid "Parameters"
+msgstr ""
+
+#: superset/views.py:541 superset/views.py:569
+msgid "Slice"
+msgstr ""
+
+#: superset/views.py:542
+msgid "Name"
+msgstr ""
+
+#: superset/views.py:544 superset/views.py:570
+msgid "Visualization Type"
+msgstr ""
+
+#: superset/views.py:586
+msgid ""
+"This json object describes the positioning of the widgets in the "
+"dashboard. It is dynamically generated when adjusting the widgets size "
+"and positions by using drag & drop in the dashboard view"
+msgstr ""
+
+#: superset/views.py:591
+msgid ""
+"The css for individual dashboards can be altered here, or in the "
+"dashboard view where changes are immediately visible"
+msgstr ""
+
+#: superset/views.py:595
+msgid "To get a readable URL for your dashboard"
+msgstr ""
+
+#: superset/views.py:596
+msgid ""
+"This JSON object is generated dynamically when clicking the save or "
+"overwrite button in the dashboard view. It is exposed here for reference "
+"and for power users who may want to alter specific parameters."
+msgstr ""
+
+#: superset/views.py:601
+msgid "Owners is a list of users who can alter the dashboard."
+msgstr ""
+
+#: superset/views.py:605
+msgid "Dashboard"
+msgstr ""
+
+#: superset/views.py:606
+msgid "Title"
+msgstr ""
+
+#: superset/views.py:607
+msgid "Slug"
+msgstr ""
+
+#: superset/views.py:608
+msgid "Slices"
+msgstr ""
+
+#: superset/views.py:611
+msgid "Modified"
+msgstr ""
+
+#: superset/views.py:612
+msgid "Position JSON"
+msgstr ""
+
+#: superset/views.py:613
+msgid "CSS"
+msgstr ""
+
+#: superset/views.py:614
+msgid "JSON Metadata"
+msgstr ""
+
+#: superset/views.py:615
+msgid "Underlying Tables"
+msgstr ""
+
+#: superset/views.py:653
+msgid "User"
+msgstr ""
+
+#: superset/views.py:654
+msgid "Action"
+msgstr ""
+
+#: superset/views.py:655
+msgid "dttm"
+msgstr ""
+
+#: superset/views.py:683
+msgid "Timezone offset (in hours) for this datasource"
+msgstr ""
+
+#: superset/views.py:689
+msgid "Data Source"
+msgstr ""
+
+#: superset/views.py:692
+msgid "Owner"
+msgstr ""
+
+#: superset/views.py:694
+msgid "Is Hidden"
+msgstr ""
+
+#: superset/views.py:696
+msgid "Time Offset"
+msgstr ""
+
+#: superset/views.py:1176
+msgid "This view requires the `all_datasource_access` permission"
+msgstr ""
+
+#: superset/views.py:1249
+msgid "Refresh Druid Metadata"
+msgstr ""
+
+#: superset/viz.py:370
+msgid "GROUP BY"
+msgstr ""
+
+#: superset/viz.py:371
+msgid "Use this section if you want a query that aggregates"
+msgstr ""
+
+#: superset/viz.py:374
+msgid "NOT GROUPED BY"
+msgstr ""
+
+#: superset/viz.py:375
+msgid "Use this section if you want to query atomic rows"
+msgstr ""
+
+#: superset/viz.py:378
+msgid "Options"
+msgstr ""
+
+#: superset/viz.py:561 superset/viz.py:676 superset/viz.py:783
+#: superset/viz.py:948 superset/viz.py:1093 superset/viz.py:1122
+#: superset/viz.py:1177 superset/viz.py:1682
+msgid "Chart Options"
+msgstr ""
+
+#: superset/viz.py:595
+msgid "Calender Heatmap"
+msgstr ""
+
+#: superset/viz.py:958
+msgid "Advanced Analytics"
+msgstr ""
+
+#: superset/viz.py:959
+msgid ""
+"This section contains options that allow for advanced analytical post "
+"processing of query results"
+msgstr ""
+
+#: superset/viz.py:1195
+msgid "Breakdowns"
+msgstr ""
+
+#: superset/viz.py:1196
+msgid "Defines how each series is broken down"
+msgstr ""
+
+#: superset/viz.py:1276
+msgid "Primary Metric"
+msgstr ""
+
+#: superset/viz.py:1277
+msgid "The primary metric is used to define the arc segment sizes"
+msgstr ""
+
+#: superset/viz.py:1282
+msgid "Secondary Metric"
+msgstr ""
+
+#: superset/viz.py:1283
+msgid ""
+"This secondary metric is used to define the color as a ratio against the "
+"primary metric. If the two metrics match, color is mapped level groups"
+msgstr ""
+
+#: superset/viz.py:1289
+msgid "Hierarchy"
+msgstr ""
+
+#: superset/viz.py:1290
+msgid "This defines the level of the hierarchy"
+msgstr ""
+
+#: superset/viz.py:1340 superset/viz.py:1410
+msgid "Source / Target"
+msgstr ""
+
+#: superset/viz.py:1341 superset/viz.py:1411
+msgid "Choose a source and a target"
+msgstr ""
+
+#: superset/viz.py:1402
+msgid "Force Layout"
+msgstr ""
+
+#: superset/viz.py:1444
+msgid "Bubbles"
+msgstr ""
+
+#: superset/viz.py:1453
+msgid "Country Field"
+msgstr ""
+
+#: superset/viz.py:1454
+msgid "3 letter code of the country"
+msgstr ""
+
+#: superset/viz.py:1457
+msgid "Metric for color"
+msgstr ""
+
+#: superset/viz.py:1458
+msgid "Metric that defines the color of the country"
+msgstr ""
+
+#: superset/viz.py:1461
+msgid "Bubble size"
+msgstr ""
+
+#: superset/viz.py:1462
+msgid "Metric that defines the size of the bubble"
+msgstr ""
+
+#: superset/viz.py:1519
+msgid "Filter fields"
+msgstr ""
+
+#: superset/viz.py:1520
+msgid "The fields you want to filter on"
+msgstr ""
+
+#: superset/viz.py:1622
+msgid "Heatmap Options"
+msgstr ""
+
+#: superset/viz.py:1677
+msgid "Horizon Charts"
+msgstr ""
+
+#: superset/viz.py:1693
+msgid "Mapbox"
+msgstr ""
+
+#: superset/viz.py:1707
+msgid "Points"
+msgstr ""
+
+#: superset/viz.py:1713
+msgid "Labelling"
+msgstr ""
+
+#: superset/viz.py:1719
+msgid "Visual Tweaks"
+msgstr ""
+
+#: superset/viz.py:1726
+msgid "Viewport"
+msgstr ""
+
+#: superset/viz.py:1736
+msgid "Longitude"
+msgstr ""
+
+#: superset/viz.py:1737
+msgid "Column containing longitude data"
+msgstr ""
+
+#: superset/viz.py:1740
+msgid "Latitude"
+msgstr ""
+
+#: superset/viz.py:1741
+msgid "Column containing latitude data"
+msgstr ""
+
+#: superset/viz.py:1744
+msgid "Cluster label aggregator"
+msgstr ""
+
+#: superset/viz.py:1745
+msgid ""
+"Aggregate function applied to the list of points in each cluster to "
+"produce the cluster label."
+msgstr ""
+
+#: superset/viz.py:1750
+msgid "Tooltip"
+msgstr ""
+
+#: superset/viz.py:1751
+msgid "Show a tooltip when hovering over points and clusters describing the label"
+msgstr ""
+
+#: superset/viz.py:1756
+msgid ""
+"One or many fields to group by. If grouping, latitude and longitude "
+"columns must be present."
+msgstr ""
+
+#: superset/templates/appbuilder/navbar_right.html:36
+msgid "Profile"
+msgstr ""
+
+#: superset/templates/appbuilder/navbar_right.html:37
+msgid "Logout"
+msgstr ""
+
+#: superset/templates/appbuilder/navbar_right.html:42
+msgid "Login"
+msgstr ""
+
+#: superset/templates/superset/explore.html:34
+#: superset/templates/superset/explore.html:241
+msgid "Query"
+msgstr ""
+
+#: superset/templates/superset/explore.html:43
+#: superset/templates/superset/explore.html:306
+msgid "Save"
+msgstr ""
+
+#: superset/templates/superset/explore.html:72
+msgid "Force refresh"
+msgstr ""
+
+#: superset/templates/superset/explore.html:77
+msgid "Short URL"
+msgstr ""
+
+#: superset/templates/superset/explore.html:79
+msgid "Generate an embeddable iframe"
+msgstr ""
+
+#: superset/templates/superset/explore.html:82
+msgid "Export to .json"
+msgstr ""
+
+#: superset/templates/superset/explore.html:86
+msgid "Export to .csv format"
+msgstr ""
+
+#: superset/templates/superset/explore.html:92
+msgid "Query timer"
+msgstr ""
+
+#: superset/templates/superset/explore.html:94
+msgid "0 sec"
+msgstr ""
+
+#: superset/templates/superset/explore.html:100
+msgid "View database query"
+msgstr ""
+
+#: superset/templates/superset/explore.html:101
+msgid "query"
+msgstr ""
+
+#: superset/templates/superset/explore.html:150
+msgid "Filters are defined using comma delimited strings as in 'US,FR,Other'"
+msgstr ""
+
+#: superset/templates/superset/explore.html:168
+msgid "Add filter"
+msgstr ""
+
+#: superset/templates/superset/explore.html:247
+#: superset/templates/superset/explore.html:265
+msgid "Close"
+msgstr ""
+
+#: superset/templates/superset/explore.html:259
+msgid "Datasource Description"
+msgstr ""
+
+#: superset/templates/superset/explore.html:277
+msgid "Save a Slice"
+msgstr ""
+
+#: superset/templates/superset/explore.html:309
+msgid "Save & go to dashboard"
+msgstr ""
+
+#: superset/templates/superset/explore.html:312
+msgid "Cancel"
+msgstr ""
+
+#: superset/templates/superset/sql.html:12
+msgid "Run!"
+msgstr ""
+
+#: superset/templates/superset/sql.html:13
+msgid "Create View"
+msgstr ""
+
+#: superset/templates/superset/welcome.html:8
+#: superset/templates/superset/welcome.html:14
+msgid "Welcome!"
+msgstr ""
+
+#: superset/templates/superset/models/database/macros.html:4
+msgid "Test Connection"
+msgstr ""
+
diff --git a/docs/faq.rst b/docs/faq.rst
index 82280ed46b..1cdd624012 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -45,6 +45,15 @@ visualizations.
https://github.com/airbnb/superset/issues?q=label%3Aexample+is%3Aclosed
+Can I upload and visualize csv data?
+-------------------------------------
+
+Yes, using the ``Add CSV Table to Database`` button on the ``Sources -> Database``
+page. This brings up a wizard allowing you to configure the csv to dataframe
+conversion, and to select which database to add the csv table to. The table can
+then be loaded like any other on the ``Sources -> Tables`` page.
+
+
Why are my queries timing out?
------------------------------
diff --git a/superset/config.py b/superset/config.py
index 94d8dfc56a..dceee5d075 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -172,6 +172,10 @@
ENABLE_CORS = False
CORS_OPTIONS = {}
+# Allowed format types for upload on Database view
+# TODO: Add processing of other spreadsheet formats (xls, xlsx etc)
+ALLOWED_EXTENSIONS = set(['csv'])
+
# ---------------------------------------------------
# List of viz_types not allowed in your environment
diff --git a/superset/forms.py b/superset/forms.py
new file mode 100755
index 0000000000..9007c8f1c8
--- /dev/null
+++ b/superset/forms.py
@@ -0,0 +1,1363 @@
+"""Contains the logic to create cohesive forms on the explore view"""
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
+from __future__ import unicode_literals
+
+from collections import OrderedDict
+from copy import copy
+import json
+import math
+
+from flask_babel import lazy_gettext as _
+
+from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
+from flask_appbuilder.forms import DynamicForm
+
+from flask_wtf.file import FileField, FileAllowed, FileRequired
+
+from wtforms import (
+ Form, SelectMultipleField, SelectField, TextField, TextAreaField,
+ BooleanField, IntegerField, HiddenField, DecimalField, StringField)
+from wtforms import validators, widgets
+from wtforms.validators import DataRequired, Optional, NumberRange
+
+from superset import app
+
+config = app.config
+
+TIMESTAMP_CHOICES = [
+ ('smart_date', 'Adaptative formating'),
+ ("%m/%d/%Y", '"%m/%d/%Y" | 01/14/2019'),
+ ("%Y-%m-%d", '"%Y-%m-%d" | 2019-01-14'),
+ ("%Y-%m-%d %H:%M:%S",
+ '"%Y-%m-%d %H:%M:%S" | 2019-01-14 01:32:10'),
+ ("%H:%M:%S", '"%H:%M:%S" | 01:32:10'),
+]
+D3_FORMAT_DOCS = _(
+ "D3 format syntax "
+ "https://github.com/d3/d3-format")
+
+
+class BetterBooleanField(BooleanField):
+
+ """Fixes the html checkbox to distinguish absent from unchecked
+
+ (which doesn't distinguish False from NULL/missing )
+ If value is unchecked, this hidden <input> fills in False value
+ """
+
+ def __call__(self, **kwargs):
+ html = super(BetterBooleanField, self).__call__(**kwargs)
+ html += u'<input type="hidden" name="{}" value="false">' \
+ .format(self.name)
+ return widgets.HTMLString(html)
+
+
+class SelectMultipleSortableField(SelectMultipleField):
+
+ """Works along with select2sortable to preserves the sort order"""
+
+ def iter_choices(self):
+ d = OrderedDict()
+ for value, label in self.choices:
+ selected = self.data is not None\
+ and self.coerce(value) in self.data
+ d[value] = (value, label, selected)
+ if self.data:
+ for value in self.data:
+ if value and value in d:
+ yield d.pop(value)
+ while d:
+ yield d.popitem(last=False)[1]
+
+
+class FreeFormSelect(widgets.Select):
+
+ """A WTF widget that allows for free form entry"""
+
+ def __call__(self, field, **kwargs):
+ kwargs.setdefault('id', field.id)
+ if self.multiple:
+ kwargs['multiple'] = True
+ html = ['<select %s>' % widgets.html_params(name=field.name, **kwargs)]
+ found = False
+ for val, label, selected in field.iter_choices():
+ html.append(self.render_option(val, label, selected))
+ if field.data and val == field.data:
+ found = True
+ if not found:
+ html.insert(1, self.render_option(field.data, field.data, True))
+ html.append('</select>')
+ return widgets.HTMLString(''.join(html))
+
+
+class FreeFormSelectField(SelectField):
+
+ """A WTF SelectField that allows for free form input"""
+
+ widget = FreeFormSelect()
+
+ def pre_validate(self, form):
+ return
+
+
+class OmgWtForm(Form):
+
+ """Supersetification of the WTForm Form object"""
+
+ fieldsets = {}
+ css_classes = dict()
+
+ def get_field(self, fieldname):
+ return getattr(self, fieldname)
+
+ def field_css_classes(self, fieldname):
+ if fieldname in self.css_classes:
+ return " ".join(self.css_classes[fieldname])
+ return ""
+
+
+class FormFactory(object):
+
+ """Used to create the forms in the explore view dynamically"""
+
+ series_limits = [0, 5, 10, 25, 50, 100, 500]
+ fieltype_class = {
+ SelectField: 'select2',
+ SelectMultipleField: 'select2',
+ FreeFormSelectField: 'select2_freeform',
+ SelectMultipleSortableField: 'select2Sortable',
+ }
+
+ def __init__(self, viz):
+ self.viz = viz
+ from superset.viz import viz_types
+ viz = self.viz
+ datasource = viz.datasource
+ if not datasource.metrics_combo:
+ raise Exception("Please define at least one metric for your table")
+ default_metric = datasource.metrics_combo[0][0]
+
+ gb_cols = datasource.groupby_column_names
+ default_groupby = gb_cols[0] if gb_cols else None
+ group_by_choices = self.choicify(gb_cols)
+ order_by_choices = []
+ for s in sorted(datasource.column_names):
+ order_by_choices.append((json.dumps([s, True]), s + ' [asc]'))
+ order_by_choices.append((json.dumps([s, False]), s + ' [desc]'))
+ # Pool of all the fields that can be used in Superset
+ field_data = {
+ 'viz_type': (SelectField, {
+ "label": _("Viz"),
+ "default": 'table',
+ "choices": [(k, v.verbose_name) for k, v in viz_types.items()],
+ "description": _("The type of visualization to display")
+ }),
+ 'metrics': (SelectMultipleSortableField, {
+ "label": _("Metrics"),
+ "choices": datasource.metrics_combo,
+ "default": [default_metric],
+ "description": _("One or many metrics to display")
+ }),
+ 'order_by_cols': (SelectMultipleSortableField, {
+ "label": _("Ordering"),
+ "choices": order_by_choices,
+ "description": _("One or many metrics to display")
+ }),
+ 'metric': (SelectField, {
+ "label": _("Metric"),
+ "choices": datasource.metrics_combo,
+ "default": default_metric,
+ "description": _("Choose the metric")
+ }),
+ 'stacked_style': (SelectField, {
+ "label": _("Chart Style"),
+ "choices": (
+ ('stack', _('stack')),
+ ('stream', _('stream')),
+ ('expand', _('expand')),
+ ),
+ "default": 'stack',
+ "description": ""
+ }),
+ 'linear_color_scheme': (SelectField, {
+ "label": _("Color Scheme"),
+ "choices": (
+ ('fire', _('fire')),
+ ('blue_white_yellow', _('blue_white_yellow')),
+ ('white_black', _('white_black')),
+ ('black_white', _('black_white')),
+ ),
+ "default": 'blue_white_yellow',
+ "description": ""
+ }),
+ 'normalize_across': (SelectField, {
+ "label": _("Normalize Across"),
+ "choices": (
+ ('heatmap', _('heatmap')),
+ ('x', _('x')),
+ ('y', _('y')),
+ ),
+ "default": 'heatmap',
+ "description": _(
+ "Color will be rendered based on a ratio "
+ "of the cell against the sum of across this "
+ "criteria")
+ }),
+ 'horizon_color_scale': (SelectField, {
+ "label": _("Color Scale"),
+ "choices": (
+ ('series', _('series')),
+ ('overall', _('overall')),
+ ('change', _('change')),
+ ),
+ "default": 'series',
+ "description": _("Defines how the color are attributed.")
+ }),
+ 'canvas_image_rendering': (SelectField, {
+ "label": _("Rendering"),
+ "choices": (
+ ('pixelated', _('pixelated (Sharp)')),
+ ('auto', _('auto (Smooth)')),
+ ),
+ "default": 'pixelated',
+ "description": _(
+ "image-rendering CSS attribute of the canvas object that "
+ "defines how the browser scales up the image")
+ }),
+ 'xscale_interval': (SelectField, {
+ "label": _("XScale Interval"),
+ "choices": self.choicify(range(1, 50)),
+ "default": '1',
+ "description": _(
+ "Number of step to take between ticks when "
+ "printing the x scale")
+ }),
+ 'yscale_interval': (SelectField, {
+ "label": _("YScale Interval"),
+ "choices": self.choicify(range(1, 50)),
+ "default": '1',
+ "description": _(
+ "Number of step to take between ticks when "
+ "printing the y scale")
+ }),
+ 'bar_stacked': (BetterBooleanField, {
+ "label": _("Stacked Bars"),
+ "default": False,
+ "description": ""
+ }),
+ 'show_markers': (BetterBooleanField, {
+ "label": _("Show Markers"),
+ "default": False,
+ "description": (
+ "Show data points as circle markers on top of the lines "
+ "in the chart")
+ }),
+ 'show_bar_value': (BetterBooleanField, {
+ "label": _("Bar Values"),
+ "default": False,
+ "description": "Show the value on top of the bars or not"
+ }),
+ 'order_bars': (BetterBooleanField, {
+ "label": _("Sort Bars"),
+ "default": False,
+ "description": _("Sort bars by x labels."),
+ }),
+ 'show_controls': (BetterBooleanField, {
+ "label": _("Extra Controls"),
+ "default": False,
+ "description": _(
+ "Whether to show extra controls or not. Extra controls "
+ "include things like making mulitBar charts stacked "
+ "or side by side.")
+ }),
+ 'reduce_x_ticks': (BetterBooleanField, {
+ "label": _("Reduce X ticks"),
+ "default": False,
+ "description": _(
+ "Reduces the number of X axis ticks to be rendered. "
+ "If true, the x axis wont overflow and labels may be "
+ "missing. If false, a minimum width will be applied "
+ "to columns and the width may overflow into an "
+ "horizontal scroll."),
+ }),
+ 'include_series': (BetterBooleanField, {
+ "label": _("Include Series"),
+ "default": False,
+ "description": _("Include series name as an axis")
+ }),
+ 'secondary_metric': (SelectField, {
+ "label": _("Color Metric"),
+ "choices": datasource.metrics_combo,
+ "default": default_metric,
+ "description": _("A metric to use for color")
+ }),
+ 'country_fieldtype': (SelectField, {
+ "label": _("Country Field Type"),
+ "default": 'cca2',
+ "choices": (
+ ('name', _('Full name')),
+ ('cioc', _('code International Olympic Committee (cioc)')),
+ ('cca2', _('code ISO 3166-1 alpha-2 (cca2)')),
+ ('cca3', _('code ISO 3166-1 alpha-3 (cca3)')),
+ ),
+ "description": _(
+ "The country code standard that Superset should expect "
+ "to find in the [country] column")
+ }),
+ 'groupby': (SelectMultipleSortableField, {
+ "label": _("Group by"),
+ "choices": self.choicify(datasource.groupby_column_names),
+ "description": _("One or many fields to group by")
+ }),
+ 'columns': (SelectMultipleSortableField, {
+ "label": _("Columns"),
+ "choices": self.choicify(datasource.groupby_column_names),
+ "description": _("One or many fields to pivot as columns")
+ }),
+ 'all_columns': (SelectMultipleSortableField, {
+ "label": _("Columns"),
+ "choices": self.choicify(datasource.column_names),
+ "description": _("Columns to display")
+ }),
+ 'all_columns_x': (SelectField, {
+ "label": _("X"),
+ "choices": self.choicify(datasource.column_names),
+ "default": datasource.column_names[0],
+ "description": _("Columns to display")
+ }),
+ 'all_columns_y': (SelectField, {
+ "label": _("Y"),
+ "choices": self.choicify(datasource.column_names),
+ "default": datasource.column_names[0],
+ "description": _("Columns to display")
+ }),
+ 'druid_time_origin': (FreeFormSelectField, {
+ "label": _("Origin"),
+ "choices": (
+ ('', _('default')),
+ ('now', _('now')),
+ ),
+ "default": '',
+ "description": _(
+ "Defines the origin where time buckets start, "
+ "accepts natural dates as in 'now', 'sunday' or "
+ "'1970-01-01'")
+ }),
+ 'bottom_margin': (FreeFormSelectField, {
+ "label": _("Bottom Margin"),
+ "choices": self.choicify(['auto', 50, 75, 100, 125, 150, 200]),
+ "default": 'auto',
+ "description": _(
+ "Bottom marging, in pixels, allowing for more room for "
+ "axis labels"),
+ }),
+ 'page_length': (FreeFormSelectField, {
+ "label": _("Page Length"),
+ "default": 0,
+ "choices": self.choicify([0, 10, 25, 50, 100, 250, 500]),
+ "description": _(
+ "Number of rows per page, 0 means no pagination")
+ }),
+ 'granularity': (FreeFormSelectField, {
+ "label": _("Time Granularity"),
+ "default": "one day",
+ "choices": (
+ ('all', _('all')),
+ ('5 seconds', _('5 seconds')),
+ ('30 seconds', _('30 seconds')),
+ ('1 minute', _('1 minute')),
+ ('5 minutes', _('5 minutes')),
+ ('1 hour', _('1 hour')),
+ ('6 hour', _('6 hour')),
+ ('1 day', _('1 day')),
+ ('7 days', _('7 days')),
+ ('week', _('week')),
+ ('week_starting_sunday', _('week_starting_sunday')),
+ ('week_ending_saturday', _('week_ending_saturday')),
+ ('month', _('month')),
+ ),
+ "description": _(
+ "The time granularity for the visualization. "
+ "Note that you "
+ "can type and use simple natural language as in "
+ "'10 seconds', "
+ "'1 day' or '56 weeks'")
+ }),
+ 'domain_granularity': (SelectField, {
+ "label": _("Domain"),
+ "default": "month",
+ "choices": (
+ ('hour', _('hour')),
+ ('day', _('day')),
+ ('week', _('week')),
+ ('month', _('month')),
+ ('year', _('year')),
+ ),
+ "description": _(
+ "The time unit used for the grouping of blocks")
+ }),
+ 'subdomain_granularity': (SelectField, {
+ "label": _("Subdomain"),
+ "default": "day",
+ "choices": (
+ ('min', _('min')),
+ ('hour', _('hour')),
+ ('day', _('day')),
+ ('week', _('week')),
+ ('month', _('month')),
+ ),
+ "description": _(
+ "The time unit for each block. Should be a "
+ "smaller unit than "
+ "domain_granularity. Should be larger or equal "
+ "to Time Grain")
+ }),
+ 'link_length': (FreeFormSelectField, {
+ "label": _("Link Length"),
+ "default": "200",
+ "choices": self.choicify([
+ '10',
+ '25',
+ '50',
+ '75',
+ '100',
+ '150',
+ '200',
+ '250',
+ ]),
+ "description": _("Link length in the force layout")
+ }),
+ 'charge': (FreeFormSelectField, {
+ "label": _("Charge"),
+ "default": "-500",
+ "choices": self.choicify([
+ '-50',
+ '-75',
+ '-100',
+ '-150',
+ '-200',
+ '-250',
+ '-500',
+ '-1000',
+ '-2500',
+ '-5000',
+ ]),
+ "description": _("Charge in the force layout")
+ }),
+ 'granularity_sqla': (SelectField, {
+ "label": _("Time Column"),
+ "default": datasource.main_dttm_col or datasource.any_dttm_col,
+ "choices": self.choicify(datasource.dttm_cols),
+ "description": _(
+ "The time column for the visualization. Note that you "
+ "can define arbitrary expression that return a DATETIME "
+ "column in the table editor. Also note that the "
+ "filter below is applied against this column or "
+ "expression")
+ }),
+ 'resample_rule': (FreeFormSelectField, {
+ "label": _("Resample Rule"),
+ "default": '',
+ "choices": (
+ ('1T', _('1T')),
+ ('1H', _('1H')),
+ ('1D', _('1D')),
+ ('7D', _('7D')),
+ ('1M', _('1M')),
+ ('1AS', _('1AS')),
+ ),
+ "description": _("Pandas resample rule")
+ }),
+ 'resample_how': (FreeFormSelectField, {
+ "label": _("Resample How"),
+ "default": '',
+ "choices": (
+ ('', ''),
+ ('mean', _('mean')),
+ ('sum', _('sum')),
+ ('median', _('median')),
+ ),
+ "description": _("Pandas resample how")
+ }),
+ 'resample_fillmethod': (FreeFormSelectField, {
+ "label": _("Resample Fill Method"),
+ "default": '',
+ "choices": (
+ ('', ''),
+ ('ffill', _('ffill')),
+ ('bfill', _('bfill')),
+ ),
+ "description": _("Pandas resample fill method")
+ }),
+ 'since': (FreeFormSelectField, {
+ "label": _("Since"),
+ "default": "7 days ago",
+ "choices": (
+ ('1 hour ago', _('1 hour ago')),
+ ('12 hours ago', _('12 hours ago')),
+ ('1 day ago', _('1 day ago')),
+ ('7 days ago', _('7 days ago')),
+ ('28 days ago', _('28 days ago')),
+ ('90 days ago', _('90 days ago')),
+ ('1 year ago', _('1 year ago')),
+ ),
+ "description": _(
+ "Timestamp from filter. This supports "
+ "free form typing and "
+ "natural language as in '1 day ago', "
+ "'28 days' or '3 years'")
+ }),
+ 'until': (FreeFormSelectField, {
+ "label": _("Until"),
+ "default": "now",
+ "choices": (
+ ('now', _('now')),
+ ('1 day ago', _('1 day ago')),
+ ('7 days ago', _('7 days ago')),
+ ('28 days ago', _('28 days ago')),
+ ('90 days ago', _('90 days ago')),
+ ('1 year ago', _('1 year ago')),
+ )
+ }),
+ 'max_bubble_size': (FreeFormSelectField, {
+ "label": _("Max Bubble Size"),
+ "default": "25",
+ "choices": self.choicify([
+ '5',
+ '10',
+ '15',
+ '25',
+ '50',
+ '75',
+ '100',
+ ])
+ }),
+ 'whisker_options': (FreeFormSelectField, {
+ "label": _("Whisker/outlier options"),
+ "default": "Tukey",
+ "description": _(
+ "Determines how whiskers and outliers are calculated."),
+ "choices": (
+ ('Tukey', _('Tukey')),
+ ('Min/max (no outliers)', _('Min/max (no outliers)')),
+ ('2/98 percentiles', _('2/98 percentiles')),
+ ('9/91 percentiles', _('9/91 percentiles')),
+ )
+ }),
+ 'treemap_ratio': (DecimalField, {
+ "label": _("Ratio"),
+ # d3 default, golden ratio
+ "default": 0.5 * (1 + math.sqrt(5)),
+ "description": _('Target aspect ratio for treemap tiles.'),
+ }),
+ 'number_format': (FreeFormSelectField, {
+ "label": _("Number format"),
+ "default": '.3s',
+ "choices": [
+ ('.3s', '".3s" | 12.3k'),
+ ('.3%', '".3%" | 1234543.210%'),
+ ('.4r', '".4r" | 12350'),
+ ('.3f', '".3f" | 12345.432'),
+ ('+,', '"+," | +12,345.4321'),
+ ('$,.2f', '"$,.2f" | $12,345.43'),
+ ],
+ "description": D3_FORMAT_DOCS,
+ }),
+ 'row_limit': (FreeFormSelectField, {
+ "label": _('Row limit'),
+ "default": config.get("ROW_LIMIT"),
+ "choices": self.choicify(
+ [10, 50, 100, 250, 500, 1000, 5000, 10000, 50000])
+ }),
+ 'limit': (FreeFormSelectField, {
+ "label": _('Series limit'),
+ "choices": self.choicify(self.series_limits),
+ "default": 50,
+ "description": _(
+ "Limits the number of time series that get displayed")
+ }),
+ 'timeseries_limit_metric': (SelectField, {
+ "label": _("Sort By"),
+ "choices": [('', '')] + datasource.metrics_combo,
+ "default": "",
+ "description": _("Metric used to define the top series")
+ }),
+ 'rolling_type': (SelectField, {
+ "label": _("Rolling"),
+ "default": 'None',
+ "choices": [(s, s) for s in ['None', 'mean',
+ 'sum', 'std', 'cumsum']],
+ "description": _(
+ "Defines a rolling window function to apply, works along "
+ "with the [Periods] text box")
+ }),
+ 'rolling_periods': (IntegerField, {
+ "label": _("Periods"),
+ "validators": [validators.optional()],
+ "description": _(
+ "Defines the size of the rolling window function, "
+ "relative to the time granularity selected")
+ }),
+ 'series': (SelectField, {
+ "label": _("Series"),
+ "choices": group_by_choices,
+ "default": default_groupby,
+ "description": _(
+ "Defines the grouping of entities. "
+ "Each series is shown as a specific color "
+ "on the chart and "
+ "has a legend toggle")
+ }),
+ 'entity': (SelectField, {
+ "label": _("Entity"),
+ "choices": group_by_choices,
+ "default": default_groupby,
+ "description": _("This define the element to "
+ "be plotted on the chart")
+ }),
+ 'x': (SelectField, {
+ "label": _("X Axis"),
+ "choices": datasource.metrics_combo,
+ "default": default_metric,
+ "description": _("Metric assigned to the [X] axis")
+ }),
+ 'y': (SelectField, {
+ "label": _("Y Axis"),
+ "choices": datasource.metrics_combo,
+ "default": default_metric,
+ "description": _("Metric assigned to the [Y] axis")
+ }),
+ 'size': (SelectField, {
+ "label": _('Bubble Size'),
+ "default": default_metric,
+ "choices": datasource.metrics_combo
+ }),
+ 'url': (TextField, {
+ "label": _("URL"),
+ "description": _(
+ "The URL, this field is templated, so you can integrate "
+ "{{ width }} and/or {{ height }} in your URL string."
+ ),
+ "default": 'https: //www.youtube.com/embed/JkI5rg_VcQ4',
+ }),
+ 'x_axis_label': (TextField, {
+ "label": _("X Axis Label"),
+ "default": '',
+ }),
+ 'y_axis_label': (TextField, {
+ "label": _("Y Axis Label"),
+ "default": '',
+ }),
+ 'where': (TextField, {
+ "label": _("Custom WHERE clause"),
+ "default": '',
+ "description": _(
+ "The text in this box gets included in your query's WHERE "
+ "clause, as an AND to other criteria. You can include "
+ "complex expression, parenthesis and anything else "
+ "supported by the backend it is directed towards.")
+ }),
+ 'having': (TextField, {
+ "label": _("Custom HAVING clause"),
+ "default": '',
+ "description": _(
+ "The text in this box gets included in your query's HAVING"
+ " clause, as an AND to other criteria. You can include "
+ "complex expression, parenthesis and anything else "
+ "supported by the backend it is directed towards.")
+ }),
+ 'compare_lag': (TextField, {
+ "label": _("Comparison Period Lag"),
+ "description": _(
+ "Based on granularity, number of time periods to "
+ "compare against")
+ }),
+ 'compare_suffix': (TextField, {
+ "label": _("Comparison suffix"),
+ "description": _("Suffix to apply after "
+ "the percentage display")
+ }),
+ 'table_timestamp_format': (FreeFormSelectField, {
+ "label": _("Table Timestamp Format"),
+ "default": 'smart_date',
+ "choices": TIMESTAMP_CHOICES,
+ "description": _("Timestamp Format")
+ }),
+ 'series_height': (FreeFormSelectField, {
+ "label": _("Series Height"),
+ "default": 25,
+ "choices": self.choicify([10, 25, 40, 50, 75, 100, 150, 200]),
+ "description": _("Pixel height of each series")
+ }),
+ 'x_axis_format': (FreeFormSelectField, {
+ "label": _("X axis format"),
+ "default": 'smart_date',
+ "choices": TIMESTAMP_CHOICES,
+ "description": D3_FORMAT_DOCS,
+ }),
+ 'y_axis_format': (FreeFormSelectField, {
+ "label": _("Y axis format"),
+ "default": '.3s',
+ "choices": [
+ ('.3s', '".3s" | 12.3k'),
+ ('.3%', '".3%" | 1234543.210%'),
+ ('.4r', '".4r" | 12350'),
+ ('.3f', '".3f" | 12345.432'),
+ ('+,', '"+," | +12,345.4321'),
+ ('$,.2f', '"$,.2f" | $12,345.43'),
+ ],
+ "description": D3_FORMAT_DOCS,
+ }),
+ 'markup_type': (SelectField, {
+ "label": _("Markup Type"),
+ "choices": (
+ ('markdown', _('markdown')),
+ ('html', _('html'))
+ ),
+ "default": "markdown",
+ "description": _("Pick your favorite markup language")
+ }),
+ 'rotation': (SelectField, {
+ "label": _("Rotation"),
+ "choices": (
+ ('random', _('random')),
+ ('flat', _('flat')),
+ ('square', _('square')),
+ ),
+ "default": "random",
+ "description": _("Rotation to apply to words in the cloud")
+ }),
+ 'line_interpolation': (SelectField, {
+ "label": _("Line Style"),
+ "choices": (
+ ('linear', _('linear')),
+ ('basis', _('basis')),
+ ('cardinal', _('cardinal')),
+ ('monotone', _('monotone')),
+ ('step-before', _('step-before')),
+ ('step-after', _('step-after')),
+ ),
+ "default": 'linear',
+ "description": _("Line interpolation as defined by d3.js")
+ }),
+ 'pie_label_type': (SelectField, {
+ "label": _("Label Type"),
+ "default": 'key',
+ "choices": (
+ ('key', _("Category Name")),
+ ('value', _("Value")),
+ ('percent', _("Percentage")),
+ ),
+ "description": _("What should be shown on the label?")
+ }),
+ 'code': (TextAreaField, {
+ "label": _("Code"),
+ "description": _("Put your code here"),
+ "default": ''
+ }),
+ 'pandas_aggfunc': (SelectField, {
+ "label": _("Aggregation function"),
+ "choices": (
+ ('sum', _('sum')),
+ ('mean', _('mean')),
+ ('min', _('min')),
+ ('max', _('max')),
+ ('median', _('median')),
+ ('stdev', _('stdev')),
+ ('var', _('var')),
+ ),
+ "default": 'sum',
+ "description": _(
+ "Aggregate function to apply when pivoting and "
+ "computing the total rows and columns")
+ }),
+ 'size_from': (TextField, {
+ "label": _("Font Size From"),
+ "default": "20",
+ "description": _("Font size for the "
+ "smallest value in the list")
+ }),
+ 'size_to': (TextField, {
+ "label": _("Font Size To"),
+ "default": "150",
+ "description": _("Font size for the biggest value in the list")
+ }),
+ 'show_brush': (BetterBooleanField, {
+ "label": _("Range Filter"),
+ "default": False,
+ "description": _(
+ "Whether to display the time range interactive selector")
+ }),
+ 'date_filter': (BetterBooleanField, {
+ "label": _("Date Filter"),
+ "default": False,
+ "description": _("Whether to include a time filter")
+ }),
+ 'show_datatable': (BetterBooleanField, {
+ "label": _("Data Table"),
+ "default": False,
+ "description": _("Whether to display the "
+ "interactive data table")
+ }),
+ 'include_search': (BetterBooleanField, {
+ "label": _("Search Box"),
+ "default": False,
+ "description": _(
+ "Whether to include a client side search box")
+ }),
+ 'table_filter': (BetterBooleanField, {
+ "label": _("Table Filter"),
+ "default": False,
+ "description": _(
+ "Whether to apply filter when table cell is clicked")
+ }),
+ 'show_bubbles': (BetterBooleanField, {
+ "label": _("Show Bubbles"),
+ "default": False,
+ "description": _(
+ "Whether to display bubbles on top of countries")
+ }),
+ 'show_legend': (BetterBooleanField, {
+ "label": _("Legend"),
+ "default": True,
+ "description": _("Whether to display the legend (toggles)")
+ }),
+ 'x_axis_showminmax': (BetterBooleanField, {
+ "label": _("X bounds"),
+ "default": True,
+ "description": _(
+ "Whether to display the min and max values of the X axis")
+ }),
+ 'rich_tooltip': (BetterBooleanField, {
+ "label": _("Rich Tooltip"),
+ "default": True,
+ "description": _(
+ "The rich tooltip shows a list of all series for that"
+ " point in time")
+ }),
+ 'y_axis_zero': (BetterBooleanField, {
+ "label": _("Y Axis Zero"),
+ "default": False,
+ "description": _(
+ "Force the Y axis to start at 0 instead of the minimum "
+ "value")
+ }),
+ 'y_log_scale': (BetterBooleanField, {
+ "label": _("Y Log"),
+ "default": False,
+ "description": _("Use a log scale for the Y axis")
+ }),
+ 'x_log_scale': (BetterBooleanField, {
+ "label": _("X Log"),
+ "default": False,
+ "description": _("Use a log scale for the X axis")
+ }),
+ 'donut': (BetterBooleanField, {
+ "label": _("Donut"),
+ "default": False,
+ "description": _("Do you want a donut or a pie?")
+ }),
+ 'labels_outside': (BetterBooleanField, {
+ "label": _("Put labels outside"),
+ "default": True,
+ "description": _("Put the labels outside the pie?")
+ }),
+ 'contribution': (BetterBooleanField, {
+ "label": _("Contribution"),
+ "default": False,
+ "description": _("Compute the contribution to the total")
+ }),
+ 'num_period_compare': (IntegerField, {
+ "label": _("Period Ratio"),
+ "default": None,
+ "validators": [validators.optional()],
+ "description": _(
+ "[integer] Number of period to compare against, "
+ "this is relative to the granularity selected")
+ }),
+ 'period_ratio_type': (SelectField, {
+ "label": _("Period Ratio Type"),
+ "default": 'growth',
+ "choices": (
+ ('factor', _('factor')),
+ ('growth', _('growth')),
+ ('value', _('value')),
+ ),
+ "description": _(
+ "`factor` means (new/previous), `growth` is "
+ "((new/previous) - 1), `value` is (new-previous)")
+ }),
+ 'time_compare': (TextField, {
+ "label": _("Time Shift"),
+ "default": "",
+ "description": _(
+ "Overlay a timeseries from a "
+ "relative time period. Expects relative time delta "
+ "in natural language (example: 24 hours, 7 days, "
+ "56 weeks, 365 days")
+ }),
+ 'subheader': (TextField, {
+ "label": _("Subheader"),
+ "description": _(
+ "Description text that shows up below your Big "
+ "Number")
+ }),
+ 'mapbox_label': (SelectMultipleSortableField, {
+ "label": "Label",
+ "choices": self.choicify(["count"] + datasource.column_names),
+ "description": _(
+ "'count' is COUNT(*) if a group by is used. "
+ "Numerical columns will be aggregated "
+ "with the aggregator. "
+ "Non-numerical columns will be used to label points. "
+ "Leave empty to get a count of points in each cluster."),
+ }),
+ 'mapbox_style': (SelectField, {
+ "label": "Map Style",
+ "choices": [
+ ("mapbox://styles/mapbox/streets-v9", "Streets"),
+ ("mapbox://styles/mapbox/dark-v9", "Dark"),
+ ("mapbox://styles/mapbox/light-v9", "Light"),
+ ("mapbox://styles/mapbox/satellite-streets-v9",
+ "Satellite Streets"),
+ ("mapbox://styles/mapbox/satellite-v9", "Satellite"),
+ ("mapbox://styles/mapbox/outdoors-v9", "Outdoors"),
+ ],
+ "default": "mapbox://styles/mapbox/streets-v9",
+ "description": _("Base layer map style")
+ }),
+ 'clustering_radius': (FreeFormSelectField, {
+ "label": _("Clustering Radius"),
+ "default": "60",
+ "choices": self.choicify([
+ '0',
+ '20',
+ '40',
+ '60',
+ '80',
+ '100',
+ '200',
+ '500',
+ '1000',
+ ]),
+ "description": _(
+ "The radius (in pixels) the algorithm "
+ "uses to define a cluster. "
+ "Choose 0 to turn off clustering, but beware that a large "
+ "number of points (>1000) will cause lag.")
+ }),
+ 'point_radius': (SelectField, {
+ "label": _("Point Radius"),
+ "default": "Auto",
+ "choices": self.choicify(["Auto"] + datasource.column_names),
+ "description": _(
+ "The radius of individual points (ones that are "
+ "not in a cluster). "
+ "Either a numerical column or 'Auto', which scales "
+ "the point based "
+ "on the largest cluster")
+ }),
+ 'point_radius_unit': (SelectField, {
+ "label": _("Point Radius Unit"),
+ "default": "Pixels",
+ "choices": self.choicify([
+ "Pixels",
+ "Miles",
+ "Kilometers",
+ ]),
+ "description": _("The unit of measure for the specified"
+ " point radius")
+ }),
+ 'global_opacity': (DecimalField, {
+ "label": _("Opacity"),
+ "default": 1,
+ "description": _(
+ "Opacity of all clusters, points, and labels. "
+ "Between 0 and 1."),
+ }),
+ 'viewport_zoom': (DecimalField, {
+ "label": _("Zoom"),
+ "default": 11,
+ "validators": [validators.optional()],
+ "description": _("Zoom level of the map"),
+ "places": 8,
+ }),
+ 'viewport_latitude': (DecimalField, {
+ "label": _("Default latitude"),
+ "default": 37.772123,
+ "description": _("Latitude of default viewport"),
+ "places": 8,
+ }),
+ 'viewport_longitude': (DecimalField, {
+ "label": _("Default longitude"),
+ "default": -122.405293,
+ "description": _("Longitude of default viewport"),
+ "places": 8,
+ }),
+ 'render_while_dragging': (BetterBooleanField, {
+ "label": _("Live render"),
+ "default": True,
+ "description": _(
+ "Points and clusters will update as viewport "
+ "is being changed"),
+ }),
+ 'mapbox_color': (FreeFormSelectField, {
+ "label": _("RGB Color"),
+ "default": "rgb(0, 122, 135)",
+ "choices": [
+ ("rgb(0, 139, 139)", "Dark Cyan"),
+ ("rgb(128, 0, 128)", "Purple"),
+ ("rgb(255, 215, 0)", "Gold"),
+ ("rgb(69, 69, 69)", "Dim Gray"),
+ ("rgb(220, 20, 60)", "Crimson"),
+ ("rgb(34, 139, 34)", "Forest Green"),
+ ],
+ "description": _("The color for points and clusters in RGB")
+ }),
+ 'ranges': (TextField, {
+ "label": _("Ranges"),
+ "default": "",
+ "description": _("Ranges to highlight with shading")
+ }),
+ 'range_labels': (TextField, {
+ "label": _("Range labels"),
+ "default": "",
+ "description": _("Labels for the ranges")
+ }),
+ 'markers': (TextField, {
+ "label": _("Markers"),
+ "default": "",
+ "description": _("List of values to mark with triangles")
+ }),
+ 'marker_labels': (TextField, {
+ "label": _("Marker labels"),
+ "default": "",
+ "description": _("Labels for the markers")
+ }),
+ 'marker_lines': (TextField, {
+ "label": _("Marker lines"),
+ "default": "",
+ "description": _("List of values to mark with lines")
+ }),
+ 'marker_line_labels': (TextField, {
+ "label": _("Marker line labels"),
+ "default": "",
+ "description": _("Labels for the marker lines")
+ }),
+ }
+
+ # Override default arguments with form overrides
+ for field_name, override_map in viz.form_overrides.items():
+ if field_name in field_data:
+ field_data[field_name][1].update(override_map)
+
+ self.field_dict = {
+ field_name: v[0](**v[1])
+ for field_name, v in field_data.items()
+ }
+
+ @staticmethod
+ def choicify(l):
+ return [("{}".format(obj), "{}".format(obj)) for obj in l]
+
+ def get_form(self):
+ """Returns a form object based on the viz/datasource/context"""
+ viz = self.viz
+ field_css_classes = {}
+ for name, obj in self.field_dict.items():
+ field_css_classes[name] = ['form-control', 'input-sm']
+ s = self.fieltype_class.get(obj.field_class)
+ if s:
+ field_css_classes[name] += [s]
+
+ for field in ('show_brush', 'show_legend', 'rich_tooltip'):
+ field_css_classes[field] += ['input-sm']
+
+ class QueryForm(OmgWtForm):
+
+ """The dynamic form object used for the explore view"""
+
+ fieldsets = copy(viz.fieldsets)
+ css_classes = field_css_classes
+ standalone = HiddenField()
+ async = HiddenField()
+ force = HiddenField()
+ extra_filters = HiddenField()
+ json = HiddenField()
+ slice_id = HiddenField()
+ slice_name = HiddenField()
+ previous_viz_type = HiddenField(default=viz.viz_type)
+ collapsed_fieldsets = HiddenField()
+ viz_type = self.field_dict.get('viz_type')
+
+ for field in viz.flat_form_fields():
+ setattr(QueryForm, field, self.field_dict[field])
+
+ def add_to_form(attrs):
+ for attr in attrs:
+ setattr(QueryForm, attr, self.field_dict[attr])
+
+ filter_choices = self.choicify(['in', 'not in'])
+ having_op_choices = []
+ filter_prefixes = ['flt']
+ # datasource type specific form elements
+ datasource_classname = viz.datasource.__class__.__name__
+ time_fields = None
+ if datasource_classname == 'SqlaTable':
+ QueryForm.fieldsets += ({
+ 'label': _('SQL'),
+ 'fields': ['where', 'having'],
+ 'description': _(
+ "This section exposes ways to include snippets of "
+ "SQL in your query"),
+ },)
+ add_to_form(('where', 'having'))
+ grains = viz.datasource.database.grains()
+
+ if grains:
+ grains_choices = [(grain.name, grain.label) for
+ grain in grains]
+ time_fields = ('granularity_sqla', 'time_grain_sqla')
+ self.field_dict['time_grain_sqla'] = SelectField(
+ _('Time Grain'),
+ choices=grains_choices,
+ default="Time Column",
+ description=_(
+ "The time granularity for the visualization. This "
+ "applies a date transformation to alter "
+ "your time column and defines a new time granularity."
+ "The options here are defined on a per database "
+ "engine basis in the Superset source code"))
+ add_to_form(time_fields)
+ field_css_classes['time_grain_sqla'] = ['form-control',
+ 'select2']
+ field_css_classes['granularity_sqla'] = ['form-control',
+ 'select2']
+ else:
+ time_fields = 'granularity_sqla'
+ add_to_form((time_fields, ))
+ elif datasource_classname == 'DruidDatasource':
+ time_fields = ('granularity', 'druid_time_origin')
+ add_to_form(('granularity', 'druid_time_origin'))
+ field_css_classes['granularity'] = ['form-control',
+ 'select2_freeform']
+ field_css_classes['druid_time_origin'] = ['form-control',
+ 'select2_freeform']
+ filter_choices = self.choicify(['in', 'not in', 'regex'])
+ having_op_choices = self.choicify(
+ ['==', '!=', '>', '<', '>=', '<='])
+ filter_prefixes += ['having']
+ add_to_form(('since', 'until'))
+
+ # filter_cols defaults to ''. Filters with blank col will be ignored
+ filter_cols = self.choicify(
+ ([''] + viz.datasource.filterable_column_names) or [''])
+ having_cols = filter_cols + viz.datasource.metrics_combo
+ for field_prefix in filter_prefixes:
+ is_having_filter = field_prefix == 'having'
+ col_choices = filter_cols if not is_having_filter else having_cols
+ op_choices = filter_choices if not is_having_filter else \
+ having_op_choices
+ for i in range(10):
+ setattr(QueryForm, field_prefix + '_col_' + str(i),
+ SelectField(
+ _('Filter 1'),
+ default=col_choices[0][0],
+ choices=col_choices))
+ setattr(QueryForm, field_prefix + '_op_' + str(i), SelectField(
+ _('Filter 1'),
+ default=op_choices[0][0],
+ choices=op_choices))
+ setattr(
+ QueryForm, field_prefix + '_eq_' + str(i),
+ TextField(_("Super"), default=''))
+
+ if time_fields:
+ QueryForm.fieldsets = ({
+ 'label': _('Time'),
+ 'fields': (
+ time_fields,
+ ('since', 'until'),
+ ),
+ 'description': _("Time related form attributes"),
+ },) + tuple(QueryForm.fieldsets)
+ return QueryForm
+
+
+class CsvToDatabaseForm(DynamicForm):
+ # These are the fields exposed by Pandas read_csv()
+
+ # TODO: Add a must be alphanumeric, not numeric validator.
+ name = StringField(_('Table Name'),
+ description=_('Name of table to be created '
+ 'from csv data.'),
+ validators=[DataRequired()],
+ widget=BS3TextFieldWidget())
+ csv_file = FileField(_('CSV File'),
+ description=_('Select a CSV file to be '
+ 'uploaded to a database.'),
+ validators=[FileRequired(),
+ FileAllowed(['csv'],
+ _('CSV Files '
+ 'Only!'))])
+ con = StringField(_('Database URI'),
+ description=_('URI of database in which to '
+ 'add above table.'),
+ validators=[DataRequired()],
+ widget=BS3TextFieldWidget())
+ if_exists = SelectField(_('Table Exists'),
+ description=_('If table exists do one '
+ 'of the following: '
+ 'Fail (do nothing), '
+ 'Replace (drop and '
+ 'recreate table) '
+ 'or Append (insert data).'),
+ choices=[('fail', _('Fail')),
+ ('replace', _('Replace')),
+ ('append', _('Append'))],
+ validators=[DataRequired()])
+ # These are the fields exposed by Pandas .to_sql()
+ schema = StringField(_('Schema'),
+ description=_('Specify a schema (if database '
+ 'flavour supports this).'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ sep = StringField(_('Delimiter'),
+ description=_('Delimiter used by CSV '
+ 'file (for whitespace '
+ 'use \s+).'),
+ validators=[DataRequired()],
+ widget=BS3TextFieldWidget())
+ header = IntegerField(_('Header Row'),
+ description=_('Row containing the '
+ 'headers to use as '
+ 'column names (0 is '
+ 'first line of data). '
+ 'Leave empty if there is no '
+ 'header row.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ names = StringField(_('Column Names'),
+ description=_('List of comma-separated '
+ 'column names to use if '
+ 'header row not '
+ 'specified above. '
+ 'Leave empty if header '
+ 'field populated.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ index_col = IntegerField(_('Index Column'),
+ description=_('Column to use as the '
+ 'row labels of the '
+ 'dataframe. Leave empty '
+ 'if no index column.'),
+ validators=[Optional(),
+ NumberRange(0, 1E+20)],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ squeeze = BetterBooleanField(_('Squeeze'),
+ description=_('Parse the data as '
+ 'a series (specify '
+ 'this option if the '
+ 'data contains only '
+ 'one column.)'))
+ prefix = StringField(_('Prefix'),
+ description=_('Prefix to add to column '
+ 'numbers when no header '
+ '(e.g. "X" for "X0, X1").'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ mangle_dupe_cols = BetterBooleanField(_('Mangle Duplicate Columns'),
+ description=_('Specify duplicate '
+ 'columns as '
+ '"X.0, X.1".'))
+ skipinitialspace = BetterBooleanField(_('Skip Initial Space'),
+ description=_('Skip spaces '
+ 'after delimiter.'))
+ skiprows = IntegerField(_('Skip Rows'),
+ description=_('Number of rows to skip '
+ 'at start of file.'),
+ validators=[Optional(),
+ NumberRange(0, 1E+20)],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ nrows = IntegerField(_('Rows to Read'),
+ description=_('Number of rows of file to read.'),
+ validators=[Optional(), NumberRange(0, 1E+20)],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ skip_blank_lines = BetterBooleanField(_('Skip Blank Lines'),
+ description=_('Skip blank '
+ 'lines rather than '
+ 'interpreting them '
+ 'as NaN values.'))
+ parse_dates = BetterBooleanField(_('Parse Dates'),
+ description=_('Parse '
+ 'date values.'))
+ infer_datetime_format = BetterBooleanField(_('Infer Datetime Format'),
+ description=_('Use Pandas to '
+ 'interpret '
+ 'the datetime '
+ 'format '
+ 'automatically.'))
+ dayfirst = BetterBooleanField(_('Day First'),
+ description=_('Use DD/MM '
+ '(European/International) '
+ 'date format.'))
+ thousands = StringField(_('Thousands Separator'),
+ description=_('Separator for values in '
+ 'thousands.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ decimal = StringField(_('Decimal Character'),
+ description=_('Character to interpret as '
+ 'decimal point.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or '.'])
+ quotechar = StringField(_('Quote Character'),
+ description=_('Character used to denote the start '
+ 'and end of a '
+ 'quoted item.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or "'"])
+ escapechar = StringField(_('Escape Character'),
+ description=_('Character used to '
+ 'escape a quoted item.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ comment = StringField(_('Comment Character'),
+ description=_('Character used to denote the '
+ 'start of a comment.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+ error_bad_lines = BetterBooleanField(_('Error On Bad Lines'),
+ description=_('Error on bad lines '
+ '(e.g. a line with '
+ 'too many commas). '
+ 'If false these bad '
+ 'lines will instead '
+ 'be dropped from the '
+ 'resulting dataframe.'))
+ index = BetterBooleanField(_('Dataframe Index'),
+ description=_('Write dataframe '
+ 'index as a column.'))
+ index_label = StringField(_('Column Label(s)'),
+ description=_('Column label for index '
+ 'column(s). If None is given '
+ 'and Dataframe Index is '
+ 'True, Index Names are used.'),
+ validators=[Optional()],
+ widget=BS3TextFieldWidget(),
+ filters=[lambda x: x or None])
+
diff --git a/superset/templates/superset/widgets/list.html b/superset/templates/superset/widgets/list.html
new file mode 100644
index 0000000000..68d745e069
--- /dev/null
+++ b/superset/templates/superset/widgets/list.html
@@ -0,0 +1,10 @@
+{% import "appbuilder/general/lib.html" as lib %}
+{% extends "appbuilder/general/widgets/list.html" %}
+
+ {% block list_header %}
+ {{ super() }}
+ <a href="/csvtodatabaseview/form" class="btn btn-sm btn-primary" id="uploadbutton"
+ title="Add a new database table based on a local CSV file" rel="tooltip" data-toggle="tooltip">
+ <i class="fa fa-table"> Import CSV</i>
+ </a>
+ {% endblock %}
diff --git a/superset/translations/es/LC_MESSAGES/messages.po b/superset/translations/es/LC_MESSAGES/messages.po
index 16e4d98dad..062cbbab3a 100644
--- a/superset/translations/es/LC_MESSAGES/messages.po
+++ b/superset/translations/es/LC_MESSAGES/messages.po
@@ -1,7 +1,7 @@
# Spanish translations for PROJECT.
-# Copyright (C) 2016 ORGANIZATION
+# Copyright (C) 2017 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
-# FIRST AUTHOR <EM...@ADDRESS>, 2016.
+# FIRST AUTHOR <EM...@ADDRESS>, 2017.
#
msgid ""
msgstr ""
@@ -430,8 +430,8 @@ msgstr ""
#: superset/connectors/sqla/models.py:388
msgid ""
-"Datetime column not provided as part table configuration and is required "
-"by this type of chart"
+"Defines the origin where time buckets start, accepts natural dates as in "
+"'now', 'sunday' or '1970-01-01'"
msgstr ""
#: superset/connectors/sqla/models.py:393
@@ -523,8 +523,8 @@ msgstr ""
#: superset/connectors/sqla/views.py:235
msgid ""
-"The table was created. As part of this two phase configuration process, "
-"you should now click the edit button by the new table to configure it."
+"The time unit for each block. Should be a smaller unit than "
+"domain_granularity. Should be larger or equal to Time Grain"
msgstr ""
#: superset/connectors/sqla/views.py:259
@@ -535,12 +535,12 @@ msgstr ""
msgid "Profile"
msgstr ""
-#: superset/templates/appbuilder/navbar_right.html:42
-msgid "Logout"
+#: superset/forms.py:430
+msgid "Link length in the force layout"
msgstr ""
-#: superset/templates/appbuilder/navbar_right.html:47
-msgid "Login"
+#: superset/forms.py:433
+msgid "Charge"
msgstr ""
#: superset/templates/superset/import_dashboards.html:11
@@ -551,17 +551,16 @@ msgstr ""
msgid "No Access!"
msgstr ""
-#: superset/templates/superset/request_access.html:7
-#, python-format
-msgid "You do not have permissions to access the datasource(s): %(name)s."
+#: superset/forms.py:461
+msgid "Resample Rule"
msgstr ""
-#: superset/templates/superset/request_access.html:13
-msgid "Request Permissions"
+#: superset/forms.py:464
+msgid "1T"
msgstr ""
-#: superset/templates/superset/request_access.html:16
-msgid "Cancel"
+#: superset/forms.py:465
+msgid "1H"
msgstr ""
#: superset/templates/superset/welcome.html:10
@@ -729,10 +728,8 @@ msgstr ""
#: superset/views/core.py:340
msgid ""
-"These parameters are generated dynamically when clicking the save or "
-"overwrite button in the explore view. This JSON object is exposed here "
-"for reference and for power users who may want to alter specific "
-"parameters."
+"Timestamp from filter. This supports free form typing and natural "
+"language as in '1 day ago', '28 days' or '3 years'"
msgstr ""
#: superset/views/core.py:345
@@ -920,140 +917,191 @@ msgstr ""
#~ msgid "Databases"
#~ msgstr ""
-#~ msgid "Sources"
-#~ msgstr ""
+#: superset/forms.py:627
+msgid "Y Axis"
+msgstr ""
-#~ msgid "Tables"
-#~ msgstr ""
+#: superset/forms.py:630
+msgid "Metric assigned to the [Y] axis"
+msgstr ""
-#~ msgid "Druid Clusters"
-#~ msgstr ""
+#: superset/forms.py:633
+msgid "Bubble Size"
+msgstr ""
-#~ msgid "Action Log"
-#~ msgstr ""
+#: superset/forms.py:638
+msgid "URL"
+msgstr ""
-#~ msgid "Security"
-#~ msgstr ""
+#: superset/forms.py:639
+msgid ""
+"The URL, this field is templated, so you can integrate {{ width }} and/or"
+" {{ height }} in your URL string."
+msgstr ""
-#~ msgid "Druid Datasources"
-#~ msgstr ""
+#: superset/forms.py:646
+msgid "X Axis Label"
+msgstr ""
-#~ msgid "CSS Templates"
-#~ msgstr ""
+#: superset/forms.py:650
+msgid "Y Axis Label"
+msgstr ""
-#~ msgid "Documentation"
-#~ msgstr ""
+#: superset/forms.py:654
+msgid "Custom WHERE clause"
+msgstr ""
-#~ msgid "Standalone version, use to embed anywhere"
-#~ msgstr ""
+#: superset/forms.py:656
+msgid ""
+"The text in this box gets included in your query's WHERE clause, as an "
+"AND to other criteria. You can include complex expression, parenthesis "
+"and anything else supported by the backend it is directed towards."
+msgstr ""
-#~ msgid "Overwrite"
-#~ msgstr ""
+#: superset/forms.py:663
+msgid "Custom HAVING clause"
+msgstr ""
-#~ msgid "Save as"
-#~ msgstr ""
+#: superset/forms.py:665
+msgid ""
+"The text in this box gets included in your query's HAVING clause, as an "
+"AND to other criteria. You can include complex expression, parenthesis "
+"and anything else supported by the backend it is directed towards."
+msgstr ""
-#~ msgid "Viz"
-#~ msgstr ""
+#: superset/forms.py:672
+msgid "Comparison Period Lag"
+msgstr ""
-#~ msgid "The type of visualization to display"
-#~ msgstr ""
+#: superset/forms.py:673
+msgid "Based on granularity, number of time periods to compare against"
+msgstr ""
-#~ msgid "Metrics"
-#~ msgstr ""
+#: superset/forms.py:678
+msgid "Comparison suffix"
+msgstr ""
-#~ msgid "One or many metrics to display"
-#~ msgstr ""
+#: superset/forms.py:679
+msgid "Suffix to apply after the percentage display"
+msgstr ""
-#~ msgid "Ordering"
-#~ msgstr ""
+#: superset/forms.py:683
+msgid "Table Timestamp Format"
+msgstr ""
-#~ msgid "Choose the metric"
-#~ msgstr ""
+#: superset/forms.py:686
+msgid "Timestamp Format"
+msgstr ""
-#~ msgid "Chart Style"
-#~ msgstr ""
+#: superset/forms.py:689
+msgid "Series Height"
+msgstr ""
-#~ msgid "stack"
-#~ msgstr ""
+#: superset/forms.py:692
+msgid "Pixel height of each series"
+msgstr ""
-#~ msgid "stream"
-#~ msgstr ""
+#: superset/forms.py:695
+msgid "X axis format"
+msgstr ""
-#~ msgid "expand"
-#~ msgstr ""
+#: superset/forms.py:701
+msgid "Y axis format"
+msgstr ""
-#~ msgid "Color Scheme"
-#~ msgstr ""
+#: superset/forms.py:714
+msgid "Markup Type"
+msgstr ""
-#~ msgid "fire"
-#~ msgstr ""
+#: superset/forms.py:716
+msgid "markdown"
+msgstr ""
-#~ msgid "blue_white_yellow"
-#~ msgstr ""
+#: superset/forms.py:717
+msgid "html"
+msgstr ""
-#~ msgid "white_black"
-#~ msgstr ""
+#: superset/forms.py:720
+msgid "Pick your favorite markup language"
+msgstr ""
-#~ msgid "black_white"
-#~ msgstr ""
+#: superset/forms.py:723
+msgid "Rotation"
+msgstr ""
-#~ msgid "Normalize Across"
-#~ msgstr ""
+#: superset/forms.py:725
+msgid "random"
+msgstr ""
-#~ msgid "heatmap"
-#~ msgstr ""
+#: superset/forms.py:726
+msgid "flat"
+msgstr ""
-#~ msgid "x"
-#~ msgstr ""
+#: superset/forms.py:727
+msgid "square"
+msgstr ""
-#~ msgid "y"
-#~ msgstr ""
+#: superset/forms.py:730
+msgid "Rotation to apply to words in the cloud"
+msgstr ""
#~ msgid ""
#~ msgstr ""
-#~ msgid "Color Scale"
-#~ msgstr ""
+#: superset/forms.py:735
+msgid "linear"
+msgstr ""
-#~ msgid "series"
-#~ msgstr ""
+#: superset/forms.py:736
+msgid "basis"
+msgstr ""
-#~ msgid "overall"
-#~ msgstr ""
+#: superset/forms.py:737
+msgid "cardinal"
+msgstr ""
-#~ msgid "change"
-#~ msgstr ""
+#: superset/forms.py:738
+msgid "monotone"
+msgstr ""
-#~ msgid "Defines how the color are attributed."
-#~ msgstr ""
+#: superset/forms.py:739
+msgid "step-before"
+msgstr ""
-#~ msgid "Rendering"
-#~ msgstr ""
+#: superset/forms.py:740
+msgid "step-after"
+msgstr ""
-#~ msgid "pixelated (Sharp)"
-#~ msgstr ""
+#: superset/forms.py:743
+msgid "Line interpolation as defined by d3.js"
+msgstr ""
-#~ msgid "auto (Smooth)"
-#~ msgstr ""
+#: superset/forms.py:746
+msgid "Label Type"
+msgstr ""
#~ msgid "XScale Interval"
#~ msgstr ""
-#~ msgid "Number of step to take between ticks when printing the x scale"
-#~ msgstr ""
+#: superset/forms.py:751
+msgid "Percentage"
+msgstr ""
-#~ msgid "YScale Interval"
-#~ msgstr ""
+#: superset/forms.py:753
+msgid "What should be shown on the label?"
+msgstr ""
-#~ msgid "Number of step to take between ticks when printing the y scale"
-#~ msgstr ""
+#: superset/forms.py:756
+msgid "Code"
+msgstr ""
-#~ msgid "Stacked Bars"
-#~ msgstr ""
+#: superset/forms.py:757
+msgid "Put your code here"
+msgstr ""
-#~ msgid "Extra Controls"
-#~ msgstr ""
+#: superset/forms.py:761
+msgid "Aggregation function"
+msgstr ""
#~ msgid "Reduce X ticks"
#~ msgstr ""
@@ -1061,239 +1109,323 @@ msgstr ""
#~ msgid "Include Series"
#~ msgstr ""
-#~ msgid "Include series name as an axis"
-#~ msgstr ""
+#: superset/forms.py:777
+msgid "Font Size From"
+msgstr ""
-#~ msgid "Color Metric"
-#~ msgstr ""
+#: superset/forms.py:779
+msgid "Font size for the smallest value in the list"
+msgstr ""
-#~ msgid "A metric to use for color"
-#~ msgstr ""
+#: superset/forms.py:783
+msgid "Font Size To"
+msgstr ""
-#~ msgid "Country Field Type"
-#~ msgstr ""
+#: superset/forms.py:785
+msgid "Font size for the biggest value in the list"
+msgstr ""
-#~ msgid "Full name"
-#~ msgstr ""
+#: superset/forms.py:788
+msgid "Range Filter"
+msgstr ""
-#~ msgid "code International Olympic Committee (cioc)"
-#~ msgstr ""
+#: superset/forms.py:790
+msgid "Whether to display the time range interactive selector"
+msgstr ""
-#~ msgid "code ISO 3166-1 alpha-2 (cca2)"
-#~ msgstr ""
+#: superset/forms.py:794
+msgid "Date Filter"
+msgstr ""
-#~ msgid "code ISO 3166-1 alpha-3 (cca3)"
-#~ msgstr ""
+#: superset/forms.py:796
+msgid "Whether to include a time filter"
+msgstr ""
#~ msgid "Group by"
#~ msgstr ""
-#~ msgid "One or many fields to group by"
-#~ msgstr ""
+#: superset/forms.py:805
+msgid "Search Box"
+msgstr ""
-#~ msgid "Columns"
-#~ msgstr ""
+#: superset/forms.py:807
+msgid "Whether to include a client side search box"
+msgstr ""
-#~ msgid "One or many fields to pivot as columns"
-#~ msgstr ""
+#: superset/forms.py:811
+msgid "Table Filter"
+msgstr ""
-#~ msgid "Columns to display"
-#~ msgstr ""
+#: superset/forms.py:813
+msgid "Whether to apply filter when table cell is clicked"
+msgstr ""
-#~ msgid "X"
-#~ msgstr ""
+#: superset/forms.py:817
+msgid "Show Bubbles"
+msgstr ""
-#~ msgid "Y"
-#~ msgstr ""
+#: superset/forms.py:819
+msgid "Whether to display bubbles on top of countries"
+msgstr ""
-#~ msgid "Origin"
-#~ msgstr ""
+#: superset/forms.py:823
+msgid "Legend"
+msgstr ""
-#~ msgid "default"
-#~ msgstr ""
+#: superset/forms.py:825
+msgid "Whether to display the legend (toggles)"
+msgstr ""
-#~ msgid "now"
-#~ msgstr ""
+#: superset/forms.py:828
+msgid "X bounds"
+msgstr ""
#~ msgid "Bottom Margin"
#~ msgstr ""
-#~ msgid "Bottom marging, in pixels, allowing for more room for axis labels"
-#~ msgstr ""
+#: superset/forms.py:836
+msgid "The rich tooltip shows a list of all series for that point in time"
+msgstr ""
-#~ msgid "Time Granularity"
-#~ msgstr ""
+#: superset/forms.py:841
+msgid "Y Axis Zero"
+msgstr ""
-#~ msgid "all"
-#~ msgstr ""
+#: superset/forms.py:843
+msgid "Force the Y axis to start at 0 instead of the minimum value"
+msgstr ""
-#~ msgid "5 seconds"
-#~ msgstr ""
+#: superset/forms.py:848
+msgid "Y Log"
+msgstr ""
-#~ msgid "30 seconds"
-#~ msgstr ""
+#: superset/forms.py:850
+msgid "Use a log scale for the Y axis"
+msgstr ""
-#~ msgid "1 minute"
-#~ msgstr ""
+#: superset/forms.py:853
+msgid "X Log"
+msgstr ""
-#~ msgid "5 minutes"
-#~ msgstr ""
+#: superset/forms.py:855
+msgid "Use a log scale for the X axis"
+msgstr ""
-#~ msgid "1 hour"
-#~ msgstr ""
+#: superset/forms.py:858
+msgid "Donut"
+msgstr ""
-#~ msgid "6 hour"
-#~ msgstr ""
+#: superset/forms.py:860
+msgid "Do you want a donut or a pie?"
+msgstr ""
-#~ msgid "1 day"
-#~ msgstr ""
+#: superset/forms.py:863
+msgid "Put labels outside"
+msgstr ""
-#~ msgid "7 days"
-#~ msgstr ""
+#: superset/forms.py:865
+msgid "Put the labels outside the pie?"
+msgstr ""
#~ msgid "Domain"
#~ msgstr ""
-#~ msgid "The time unit used for the grouping of blocks"
-#~ msgstr ""
+#: superset/forms.py:873
+msgid "Period Ratio"
+msgstr ""
-#~ msgid "Subdomain"
-#~ msgstr ""
+#: superset/forms.py:876
+msgid ""
+"[integer] Number of period to compare against, this is relative to the "
+"granularity selected"
+msgstr ""
-#~ msgid "min"
-#~ msgstr ""
+#: superset/forms.py:881
+msgid "Period Ratio Type"
+msgstr ""
#~ msgid "Link Length"
#~ msgstr ""
-#~ msgid "Link length in the force layout"
-#~ msgstr ""
+#: superset/forms.py:886
+msgid "value"
+msgstr ""
-#~ msgid "Charge"
-#~ msgstr ""
+#: superset/forms.py:888
+msgid ""
+"`factor` means (new/previous), `growth` is ((new/previous) - 1), `value` "
+"is (new-previous)"
+msgstr ""
-#~ msgid "Charge in the force layout"
-#~ msgstr ""
+#: superset/forms.py:893
+msgid "Time Shift"
+msgstr ""
#~ msgid "Resample Rule"
#~ msgstr ""
-#~ msgid "1T"
-#~ msgstr ""
+#: superset/forms.py:903
+msgid "Description text that shows up below your Big Number"
+msgstr ""
-#~ msgid "1H"
-#~ msgstr ""
+#: superset/forms.py:910
+msgid ""
+"'count' is COUNT(*) if a group by is used. Numerical columns will be "
+"aggregated with the aggregator. Non-numerical columns will be used to "
+"label points. Leave empty to get a count of points in each cluster."
+msgstr ""
-#~ msgid "1D"
-#~ msgstr ""
+#: superset/forms.py:929
+msgid "Base layer map style"
+msgstr ""
-#~ msgid "7D"
-#~ msgstr ""
+#: superset/forms.py:932
+msgid "Clustering Radius"
+msgstr ""
-#~ msgid "1M"
-#~ msgstr ""
+#: superset/forms.py:945
+msgid ""
+"The radius (in pixels) the algorithm uses to define a cluster. Choose 0 "
+"to turn off clustering, but beware that a large number of points (>1000) "
+"will cause lag."
+msgstr ""
-#~ msgid "1AS"
-#~ msgstr ""
+#: superset/forms.py:952
+msgid "Point Radius"
+msgstr ""
-#~ msgid "Pandas resample rule"
-#~ msgstr ""
+#: superset/forms.py:955
+msgid ""
+"The radius of individual points (ones that are not in a cluster). Either "
+"a numerical column or 'Auto', which scales the point based on the largest"
+" cluster"
+msgstr ""
-#~ msgid "Resample How"
-#~ msgstr ""
+#: superset/forms.py:963
+msgid "Point Radius Unit"
+msgstr ""
-#~ msgid "mean"
-#~ msgstr ""
+#: superset/forms.py:970
+msgid "The unit of measure for the specified point radius"
+msgstr ""
-#~ msgid "sum"
-#~ msgstr ""
+#: superset/forms.py:974
+msgid "Opacity"
+msgstr ""
-#~ msgid "median"
-#~ msgstr ""
+#: superset/forms.py:976
+msgid "Opacity of all clusters, points, and labels. Between 0 and 1."
+msgstr ""
-#~ msgid "Pandas resample how"
-#~ msgstr ""
+#: superset/forms.py:981
+msgid "Zoom"
+msgstr ""
-#~ msgid "Resample Fill Method"
-#~ msgstr ""
+#: superset/forms.py:984
+msgid "Zoom level of the map"
+msgstr ""
-#~ msgid "ffill"
-#~ msgstr ""
+#: superset/forms.py:988
+msgid "Default latitude"
+msgstr ""
-#~ msgid "bfill"
-#~ msgstr ""
+#: superset/forms.py:990
+msgid "Latitude of default viewport"
+msgstr ""
-#~ msgid "Pandas resample fill method"
-#~ msgstr ""
+#: superset/forms.py:994
+msgid "Default longitude"
+msgstr ""
-#~ msgid "Since"
-#~ msgstr ""
+#: superset/forms.py:996
+msgid "Longitude of default viewport"
+msgstr ""
-#~ msgid "1 hour ago"
-#~ msgstr ""
+#: superset/forms.py:1000
+msgid "Live render"
+msgstr ""
-#~ msgid "12 hours ago"
-#~ msgstr ""
+#: superset/forms.py:1002
+msgid "Points and clusters will update as viewport is being changed"
+msgstr ""
-#~ msgid "1 day ago"
-#~ msgstr ""
+#: superset/forms.py:1007
+msgid "RGB Color"
+msgstr ""
-#~ msgid "7 days ago"
-#~ msgstr ""
+#: superset/forms.py:1017
+msgid "The color for points and clusters in RGB"
+msgstr ""
-#~ msgid "28 days ago"
-#~ msgstr ""
+#: superset/forms.py:1020
+msgid "Ranges"
+msgstr ""
-#~ msgid "90 days ago"
-#~ msgstr ""
+#: superset/forms.py:1022
+msgid "Ranges to highlight with shading"
+msgstr ""
-#~ msgid "1 year ago"
-#~ msgstr ""
+#: superset/forms.py:1025
+msgid "Range labels"
+msgstr ""
#~ msgid "Until"
#~ msgstr ""
-#~ msgid "Max Bubble Size"
-#~ msgstr ""
+#: superset/forms.py:1032
+msgid "List of values to mark with triangles"
+msgstr ""
-#~ msgid "Whisker/outlier options"
-#~ msgstr ""
+#: superset/forms.py:1035
+msgid "Marker labels"
+msgstr ""
-#~ msgid "Determines how whiskers and outliers are calculated."
-#~ msgstr ""
+#: superset/forms.py:1037
+msgid "Labels for the markers"
+msgstr ""
-#~ msgid "Tukey"
-#~ msgstr ""
+#: superset/forms.py:1040
+msgid "Marker lines"
+msgstr ""
-#~ msgid "Min/max (no outliers)"
-#~ msgstr ""
+#: superset/forms.py:1042
+msgid "List of values to mark with lines"
+msgstr ""
-#~ msgid "2/98 percentiles"
-#~ msgstr ""
+#: superset/forms.py:1045
+msgid "Marker line labels"
+msgstr ""
-#~ msgid "9/91 percentiles"
-#~ msgstr ""
+#: superset/forms.py:1047
+msgid "Labels for the marker lines"
+msgstr ""
-#~ msgid "Ratio"
-#~ msgstr ""
+#: superset/forms.py:1110
+msgid "SQL"
+msgstr ""
-#~ msgid "Target aspect ratio for treemap tiles."
-#~ msgstr ""
+#: superset/forms.py:1112
+msgid "This section exposes ways to include snippets of SQL in your query"
+msgstr ""
-#~ msgid "Number format"
-#~ msgstr ""
+#: superset/forms.py:1124
+msgid "Time Grain"
+msgstr ""
#~ msgid "Row limit"
#~ msgstr ""
-#~ msgid "Series limit"
-#~ msgstr ""
+#: superset/forms.py:1175
+msgid "Super"
+msgstr ""
-#~ msgid "Limits the number of time series that get displayed"
-#~ msgstr ""
+#: superset/forms.py:1179
+msgid "Time"
+msgstr ""
-#~ msgid "Rolling"
-#~ msgstr ""
+#: superset/forms.py:1184
+msgid "Time related form attributes"
+msgstr ""
#~ msgid "Periods"
#~ msgstr ""
@@ -1304,35 +1436,52 @@ msgstr ""
#~ msgid "Entity"
#~ msgstr ""
-#~ msgid "This define the element to be plotted on the chart"
-#~ msgstr ""
+#: superset/forms.py:1205
+msgid ""
+"Row containing the headers to use as column names (0 is first line of "
+"data). Leave empty if there is no header row."
+msgstr ""
-#~ msgid "X Axis"
-#~ msgstr ""
+#: superset/forms.py:1214
+msgid "Column Names"
+msgstr ""
-#~ msgid "Metric assigned to the [X] axis"
-#~ msgstr ""
+#: superset/forms.py:1215
+msgid ""
+"List of comma-separated column names to use if header row not specified "
+"above. Leave empty if header field populated."
+msgstr ""
-#~ msgid "Y Axis"
-#~ msgstr ""
+#: superset/forms.py:1224
+msgid "Index Column"
+msgstr ""
-#~ msgid "Metric assigned to the [Y] axis"
-#~ msgstr ""
+#: superset/forms.py:1225
+msgid ""
+"Column to use as the row labels of the dataframe. Leave empty if no index"
+" column."
+msgstr ""
-#~ msgid "Bubble Size"
-#~ msgstr ""
+#: superset/forms.py:1233
+msgid "Squeeze"
+msgstr ""
-#~ msgid "URL"
-#~ msgstr ""
+#: superset/forms.py:1234
+msgid ""
+"Parse the data as a series (specify this option if the data contains only"
+" one column.)"
+msgstr ""
#~ msgid "X Axis Label"
#~ msgstr ""
-#~ msgid "Y Axis Label"
-#~ msgstr ""
+#: superset/forms.py:1246
+msgid "Mangle Duplicate Columns"
+msgstr ""
-#~ msgid "Custom WHERE clause"
-#~ msgstr ""
+#: superset/forms.py:1247
+msgid "Specify duplicate columns as \"X.0, X.1\"."
+msgstr ""
#~ msgid "Custom HAVING clause"
#~ msgstr ""
@@ -1340,187 +1489,253 @@ msgstr ""
#~ msgid "Comparison Period Lag"
#~ msgstr ""
-#~ msgid "Based on granularity, number of time periods to compare against"
-#~ msgstr ""
+#: superset/forms.py:1260
+msgid "Rows to Read"
+msgstr ""
-#~ msgid "Comparison suffix"
-#~ msgstr ""
+#: superset/forms.py:1261
+msgid "Number of rows of file to read."
+msgstr ""
-#~ msgid "Suffix to apply after the percentage display"
-#~ msgstr ""
+#: superset/forms.py:1265
+msgid "Skip Blank Lines"
+msgstr ""
-#~ msgid "Table Timestamp Format"
-#~ msgstr ""
+#: superset/forms.py:1266
+msgid "Skip blank lines rather than interpreting them as NaN values."
+msgstr ""
-#~ msgid "Timestamp Format"
-#~ msgstr ""
+#: superset/forms.py:1270
+msgid "Parse Dates"
+msgstr ""
-#~ msgid "Series Height"
-#~ msgstr ""
+#: superset/forms.py:1271
+msgid "Parse date values."
+msgstr ""
-#~ msgid "Pixel height of each series"
-#~ msgstr ""
+#: superset/forms.py:1273
+msgid "Infer Datetime Format"
+msgstr ""
-#~ msgid "X axis format"
-#~ msgstr ""
+#: superset/forms.py:1274
+msgid "Use Pandas to interpret the datetime format automatically."
+msgstr ""
#~ msgid "Y axis format"
#~ msgstr ""
-#~ msgid "Markup Type"
-#~ msgstr ""
+#: superset/forms.py:1283
+msgid "Thousands Separator"
+msgstr ""
-#~ msgid "markdown"
-#~ msgstr ""
+#: superset/forms.py:1284
+msgid "Separator for values in thousands."
+msgstr ""
-#~ msgid "html"
-#~ msgstr ""
+#: superset/forms.py:1289
+msgid "Decimal Character"
+msgstr ""
-#~ msgid "Pick your favorite markup language"
-#~ msgstr ""
+#: superset/forms.py:1290
+msgid "Character to interpret as decimal point."
+msgstr ""
-#~ msgid "Rotation"
-#~ msgstr ""
+#: superset/forms.py:1295
+msgid "Quote Character"
+msgstr ""
-#~ msgid "random"
-#~ msgstr ""
+#: superset/forms.py:1296
+msgid "Character used to denote the start and end of a quoted item."
+msgstr ""
-#~ msgid "flat"
-#~ msgstr ""
+#: superset/forms.py:1302
+msgid "Escape Character"
+msgstr ""
-#~ msgid "square"
-#~ msgstr ""
+#: superset/forms.py:1303
+msgid "Character used to escape a quoted item."
+msgstr ""
-#~ msgid "Rotation to apply to words in the cloud"
-#~ msgstr ""
+#: superset/forms.py:1308
+msgid "Comment Character"
+msgstr ""
-#~ msgid "Line Style"
-#~ msgstr ""
+#: superset/forms.py:1309
+msgid "Character used to denote the start of a comment."
+msgstr ""
-#~ msgid "linear"
-#~ msgstr ""
+#: superset/forms.py:1314
+msgid "Encoding"
+msgstr ""
-#~ msgid "basis"
-#~ msgstr ""
+#: superset/forms.py:1315
+msgid "Encoding to use for UTF when reading/writing (e.g. \"utf-8\")."
+msgstr ""
-#~ msgid "cardinal"
-#~ msgstr ""
+#: superset/forms.py:1320
+msgid "Error On Bad Lines"
+msgstr ""
-#~ msgid "monotone"
-#~ msgstr ""
+#: superset/forms.py:1321
+msgid ""
+"Error on bad lines (e.g. a line with too many commas). If false these bad"
+" lines will instead be dropped from the resulting dataframe."
+msgstr ""
-#~ msgid "step-before"
-#~ msgstr ""
+#: superset/forms.py:1330
+msgid "Table Name"
+msgstr ""
-#~ msgid "step-after"
-#~ msgstr ""
+#: superset/forms.py:1331
+msgid "Name of table to be createdfrom csv data."
+msgstr ""
-#~ msgid "Line interpolation as defined by d3.js"
-#~ msgstr ""
+#: superset/forms.py:1335
+msgid "Database URI"
+msgstr ""
-#~ msgid "Code"
-#~ msgstr ""
+#: superset/forms.py:1336
+msgid "URI of database in which to add above table."
+msgstr ""
-#~ msgid "Put your code here"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:199 superset/forms.py:1340
+msgid "Schema"
+msgstr ""
-#~ msgid "Aggregation function"
-#~ msgstr ""
+#: superset/forms.py:1341
+msgid "Specify a schema (if database flavour supports this)."
+msgstr ""
-#~ msgid "max"
-#~ msgstr ""
+#: superset/forms.py:1346
+msgid "Table Exists"
+msgstr ""
-#~ msgid "stdev"
-#~ msgstr ""
+#: superset/forms.py:1347
+msgid ""
+"If table exists do one of the following: Fail (do nothing), Replace (drop"
+" and recreate table) or Append (insert data)."
+msgstr ""
-#~ msgid "var"
-#~ msgstr ""
+#: superset/forms.py:1353
+msgid "Fail"
+msgstr ""
#~ msgid "Font Size From"
#~ msgstr ""
-#~ msgid "Font size for the smallest value in the list"
-#~ msgstr ""
+#: superset/forms.py:1357
+msgid "Dataframe Index"
+msgstr ""
-#~ msgid "Font Size To"
-#~ msgstr ""
+#: superset/forms.py:1358
+msgid "Write dataframe index as a column."
+msgstr ""
-#~ msgid "Font size for the biggest value in the list"
-#~ msgstr ""
+#: superset/forms.py:1360
+msgid "Column Label(s)"
+msgstr ""
-#~ msgid "Range Filter"
-#~ msgstr ""
+#: superset/forms.py:1361
+msgid ""
+"Column label for index column(s). If None is given and Dataframe Index is"
+" True, Index Names are used."
+msgstr ""
-#~ msgid "Whether to display the time range interactive selector"
-#~ msgstr ""
+#: superset/forms.py:1368
+msgid "Chunksize"
+msgstr ""
-#~ msgid "Data Table"
-#~ msgstr ""
+#: superset/forms.py:1369
+msgid ""
+"If empty, all rows will be written at once. Otherwise, rows will be "
+"written in batches of this many rows at a time."
+msgstr ""
-#~ msgid "Whether to display the interactive data table"
-#~ msgstr ""
+#: superset/viz.py:311
+msgid "Table View"
+msgstr ""
-#~ msgid "Search Box"
-#~ msgstr ""
+#: superset/viz.py:364
+msgid "Pivot Table"
+msgstr ""
-#~ msgid "Whether to include a client side search box"
-#~ msgstr ""
+#: superset/viz.py:413
+msgid "Markup"
+msgstr ""
-#~ msgid "Show Bubbles"
-#~ msgstr ""
+#: superset/viz.py:432
+msgid "Separator"
+msgstr ""
-#~ msgid "Whether to display bubbles on top of countries"
-#~ msgstr ""
+#: superset/viz.py:448
+msgid "Word Cloud"
+msgstr ""
-#~ msgid "Legend"
-#~ msgstr ""
+#: superset/viz.py:471
+msgid "Treemap"
+msgstr ""
-#~ msgid "Whether to display the legend (toggles)"
-#~ msgstr ""
+#: superset/viz.py:497
+msgid "Calendar Heatmap"
+msgstr ""
-#~ msgid "X bounds"
-#~ msgstr ""
+#: superset/viz.py:555
+msgid "Box Plot"
+msgstr ""
-#~ msgid "Whether to display the min and max values of the X axis"
-#~ msgstr ""
+#: superset/viz.py:644
+msgid "Bubble Chart"
+msgstr ""
-#~ msgid "Rich Tooltip"
-#~ msgstr ""
+#: superset/viz.py:693
+msgid "Bullet Chart"
+msgstr ""
-#~ msgid "The rich tooltip shows a list of all series for that point in time"
-#~ msgstr ""
+#: superset/viz.py:742
+msgid "Big Number with Trendline"
+msgstr ""
-#~ msgid "Y Axis Zero"
-#~ msgstr ""
+#: superset/viz.py:771
+msgid "Big Number"
+msgstr ""
-#~ msgid "Force the Y axis to start at 0 instead of the minimum value"
-#~ msgstr ""
+#: superset/viz.py:798
+msgid "Time Series - Line Chart"
+msgstr ""
-#~ msgid "Y Log"
-#~ msgstr ""
+#: superset/viz.py:925
+msgid "Time Series - Dual Axis Line Chart"
+msgstr ""
-#~ msgid "Use a log scale for the Y axis"
-#~ msgstr ""
+#: superset/viz.py:1000
+msgid "Time Series - Bar Chart"
+msgstr ""
-#~ msgid "X Log"
-#~ msgstr ""
+#: superset/viz.py:1008
+msgid "Time Series - Percent Change"
+msgstr ""
-#~ msgid "Use a log scale for the X axis"
-#~ msgstr ""
+#: superset/viz.py:1016
+msgid "Time Series - Stacked"
+msgstr ""
-#~ msgid "Donut"
-#~ msgstr ""
+#: superset/viz.py:1025
+msgid "Distribution - NVD3 - Pie Chart"
+msgstr ""
-#~ msgid "Do you want a donut or a pie?"
-#~ msgstr ""
+#: superset/viz.py:1043
+msgid "Histogram"
+msgstr ""
-#~ msgid "Contribution"
-#~ msgstr ""
+#: superset/viz.py:1068
+msgid "Distribution - Bar Chart"
+msgstr ""
-#~ msgid "Compute the contribution to the total"
-#~ msgstr ""
+#: superset/viz.py:1135
+msgid "Sunburst"
+msgstr ""
-#~ msgid "Period Ratio"
+#~ msgid "Time Shift"
#~ msgstr ""
#~ msgid "Time Shift"
@@ -1529,13 +1744,14 @@ msgstr ""
#~ msgid "Subheader"
#~ msgstr ""
-#~ msgid "Description text that shows up below your Big Number"
-#~ msgstr ""
+#: superset/viz.py:1352
+msgid "iFrame"
+msgstr ""
#~ msgid "Base layer map style"
#~ msgstr ""
-#~ msgid "Clustering Radius"
+#~ msgid "Point Radius"
#~ msgstr ""
#~ msgid "Point Radius"
@@ -1544,185 +1760,267 @@ msgstr ""
#~ msgid "Point Radius Unit"
#~ msgstr ""
-#~ msgid "The unit of measure for the specified point radius"
-#~ msgstr ""
-
-#~ msgid "Opacity"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:39 superset/views/core.py:481
+#: superset/views/core.py:530
+msgid "Datasource"
+msgstr ""
-#~ msgid "Opacity of all clusters, points, and labels. Between 0 and 1."
-#~ msgstr ""
+#: superset/connectors/druid/views.py:40 superset/connectors/sqla/views.py:77
+msgid "Groupable"
+msgstr ""
-#~ msgid "Zoom"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:41 superset/connectors/sqla/views.py:78
+msgid "Filterable"
+msgstr ""
-#~ msgid "Zoom level of the map"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:42 superset/connectors/sqla/views.py:80
+msgid "Count Distinct"
+msgstr ""
-#~ msgid "Default latitude"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:43 superset/connectors/sqla/views.py:81
+msgid "Sum"
+msgstr ""
-#~ msgid "Latitude of default viewport"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:44 superset/connectors/sqla/views.py:82
+msgid "Min"
+msgstr ""
-#~ msgid "Default longitude"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:45 superset/connectors/sqla/views.py:83
+msgid "Max"
+msgstr ""
-#~ msgid "Longitude of default viewport"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:48 superset/connectors/sqla/views.py:43
+msgid ""
+"Whether this column is exposed in the `Filters` section of the explore "
+"view."
+msgstr ""
-#~ msgid "Live render"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:88 superset/connectors/sqla/views.py:102
+msgid ""
+"Whether the access to this metric is restricted to certain roles. Only "
+"roles with the permission 'metric access on XXX (the name of this "
+"metric)' are allowed to access this metric"
+msgstr ""
-#~ msgid "Points and clusters will update as viewport is being changed"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:95 superset/connectors/druid/views.py:205
+#: superset/connectors/sqla/views.py:76 superset/connectors/sqla/views.py:118
+#: superset/views/core.py:531
+msgid "Description"
+msgstr ""
-#~ msgid "RGB Color"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:96 superset/connectors/sqla/views.py:75
+#: superset/connectors/sqla/views.py:119
+msgid "Verbose Name"
+msgstr ""
-#~ msgid "The color for points and clusters in RGB"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:98 superset/views/core.py:704
+msgid "JSON"
+msgstr ""
-#~ msgid "SQL"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:99
+msgid "Druid Datasource"
+msgstr ""
-#~ msgid "This section exposes ways to include snippets of SQL in your query"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:124
+#: superset/connectors/druid/views.py:204
+msgid "Cluster"
+msgstr ""
-#~ msgid "Time Grain"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:125
+msgid "Coordinator Host"
+msgstr ""
#~ msgid "Filter 1"
#~ msgstr ""
-#~ msgid "Super"
-#~ msgstr ""
+#: superset/connectors/druid/views.py:128
+msgid "Broker Host"
+msgstr ""
-#~ msgid "Time"
+#~ msgid "Filter 1"
#~ msgstr ""
-#~ msgid "Time related form attributes"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:121
+msgid "SQL Expression"
+msgstr ""
-#~ msgid "SQL link"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:165
+msgid "Name of the table that exists in the source database"
+msgstr ""
-#~ msgid "Is Featured"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:167
+msgid "Schema, as used only in some databases like Postgres, Redshift and DB2"
+msgstr ""
-#~ msgid "This view requires the `all_datasource_access` permission"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:173
+msgid ""
+"This fields acts a Superset view, meaning that Superset will run a query "
+"against this string as a subquery."
+msgstr ""
-#~ msgid "Refresh Druid Metadata"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:177
+msgid ""
+"Predicate applied when fetching distinct value to populate the filter "
+"control component. Supports jinja template syntax. Applies only when "
+"`Enable Filter Select` is on."
+msgstr ""
-#~ msgid "GROUP BY"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:183
+msgid "Redirects to this endpoint when clicking on the table from the table list"
+msgstr ""
-#~ msgid "Use this section if you want a query that aggregates"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:195
+msgid "Changed By"
+msgstr ""
-#~ msgid "NOT GROUPED BY"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:196 superset/views/core.py:248
+msgid "Database"
+msgstr ""
-#~ msgid "Use this section if you want to query atomic rows"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:197 superset/views/core.py:250
+msgid "Last Changed"
+msgstr ""
-#~ msgid "Options"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:203
+msgid "Offset"
+msgstr ""
-#~ msgid "Chart Options"
-#~ msgstr ""
+#: superset/connectors/sqla/views.py:236
+msgid ""
+"The table was created. As part of this two phase configuration process, "
+"you should now click the edit button by the new table to configure it."
+msgstr ""
-#~ msgid "Advanced Analytics"
-#~ msgstr ""
+#: superset/templates/appbuilder/navbar_right.html:41
+msgid "Profile"
+msgstr ""
#~ msgid "Breakdowns"
#~ msgstr ""
-#~ msgid "Defines how each series is broken down"
+#~ msgid "Breakdowns"
#~ msgstr ""
-#~ msgid "Primary Metric"
-#~ msgstr ""
+#: superset/templates/superset/request_access.html:7
+#, python-format
+msgid "You do not have permissions to access the datasource(s): %(name)s."
+msgstr ""
-#~ msgid "The primary metric is used to define the arc segment sizes"
-#~ msgstr ""
+#: superset/templates/superset/request_access.html:13
+msgid "Request Permissions"
+msgstr ""
-#~ msgid "Secondary Metric"
+#~ msgid "Hierarchy"
#~ msgstr ""
#~ msgid "Hierarchy"
#~ msgstr ""
-#~ msgid "This defines the level of the hierarchy"
-#~ msgstr ""
+#: superset/views/core.py:216
+msgid "Expose this DB in SQL Lab"
+msgstr ""
-#~ msgid "Source / Target"
-#~ msgstr ""
+#: superset/views/core.py:217
+msgid ""
+"Allow users to run synchronous queries, this is the default and should "
+"work well for queries that can be executed within a web request scope "
+"(<~1 minute)"
+msgstr ""
-#~ msgid "Choose a source and a target"
-#~ msgstr ""
+#: superset/views/core.py:221
+msgid ""
+"Allow users to run queries, against an async backend. This assumes that "
+"you have a Celery worker setup as well as a results backend."
+msgstr ""
-#~ msgid "Force Layout"
-#~ msgstr ""
+#: superset/views/core.py:225
+msgid "Allow CREATE TABLE AS option in SQL Lab"
+msgstr ""
-#~ msgid "Bubbles"
-#~ msgstr ""
+#: superset/views/core.py:226
+msgid ""
+"Allow users to run non-SELECT statements (UPDATE, DELETE, CREATE, ...) in"
+" SQL Lab"
+msgstr ""
-#~ msgid "Country Field"
-#~ msgstr ""
+#: superset/views/core.py:230
+msgid ""
+"When allowing CREATE TABLE AS option in SQL Lab, this option forces the "
+"table to be created in this schema"
+msgstr ""
-#~ msgid "3 letter code of the country"
-#~ msgstr ""
+#: superset/views/core.py:244
+msgid "Expose in SQL Lab"
+msgstr ""
-#~ msgid "Metric for color"
-#~ msgstr ""
+#: superset/views/core.py:245
+msgid "Allow CREATE TABLE AS"
+msgstr ""
-#~ msgid "Metric that defines the color of the country"
-#~ msgstr ""
+#: superset/views/core.py:246
+msgid "Allow DML"
+msgstr ""
-#~ msgid "Bubble size"
-#~ msgstr ""
+#: superset/views/core.py:247
+msgid "CTAS Schema"
+msgstr ""
-#~ msgid "Metric that defines the size of the bubble"
-#~ msgstr ""
+#: superset/views/core.py:249 superset/views/core.py:528
+#: superset/views/core.py:624 superset/views/core.py:688
+msgid "Creator"
+msgstr ""
-#~ msgid "Filter fields"
-#~ msgstr ""
+#: superset/views/core.py:251
+msgid "SQLAlchemy URI"
+msgstr ""
-#~ msgid "The fields you want to filter on"
-#~ msgstr ""
+#: superset/views/core.py:253
+msgid "Extra"
+msgstr ""
-#~ msgid "Heatmap Options"
-#~ msgstr ""
+#: superset/views/core.py:308
+msgid "CSV to Database configuration"
+msgstr ""
-#~ msgid "Points"
-#~ msgstr ""
+#: superset/views/core.py:394
+msgid "CSV file \"{0}\" uploaded to table \"{1}\" in database \"{2}\""
+msgstr ""
-#~ msgid "Labelling"
-#~ msgstr ""
+#: superset/views/core.py:478 superset/views/core.py:701
+msgid "User"
+msgstr ""
-#~ msgid "Visual Tweaks"
-#~ msgstr ""
+#: superset/views/core.py:479
+msgid "User Roles"
+msgstr ""
-#~ msgid "Viewport"
-#~ msgstr ""
+#: superset/views/core.py:480
+msgid "Database URL"
+msgstr ""
-#~ msgid "Longitude"
-#~ msgstr ""
+#: superset/views/core.py:482
+msgid "Roles to grant"
+msgstr ""
-#~ msgid "Column containing longitude data"
-#~ msgstr ""
+#: superset/views/core.py:483
+msgid "Created On"
+msgstr ""
-#~ msgid "Latitude"
-#~ msgstr ""
+#: superset/views/core.py:516
+msgid ""
+"These parameters are generated dynamically when clicking the save or "
+"overwrite button in the explore view. This JSON object is exposed here "
+"for reference and for power users who may want to alter specific "
+"parameters."
+msgstr ""
-#~ msgid "Column containing latitude data"
-#~ msgstr ""
+#: superset/views/core.py:521
+msgid "Duration (in seconds) of the caching timeout for this slice."
+msgstr ""
-#~ msgid "Cluster label aggregator"
-#~ msgstr ""
+#: superset/views/core.py:532
+msgid "Last Modified"
+msgstr ""
#~ msgid "Tooltip"
#~ msgstr ""
@@ -1730,59 +2028,85 @@ msgstr ""
#~ msgid "Query"
#~ msgstr ""
-#~ msgid "Save"
-#~ msgstr ""
+#: superset/views/core.py:596
+msgid ""
+"This json object describes the positioning of the widgets in the "
+"dashboard. It is dynamically generated when adjusting the widgets size "
+"and positions by using drag & drop in the dashboard view"
+msgstr ""
-#~ msgid "Force refresh"
-#~ msgstr ""
+#: superset/views/core.py:601
+msgid ""
+"The css for individual dashboards can be altered here, or in the "
+"dashboard view where changes are immediately visible"
+msgstr ""
-#~ msgid "Short URL"
-#~ msgstr ""
+#: superset/views/core.py:605
+msgid "To get a readable URL for your dashboard"
+msgstr ""
-#~ msgid "Generate an embeddable iframe"
-#~ msgstr ""
+#: superset/views/core.py:606
+msgid ""
+"This JSON object is generated dynamically when clicking the save or "
+"overwrite button in the dashboard view. It is exposed here for reference "
+"and for power users who may want to alter specific parameters."
+msgstr ""
-#~ msgid "Export to .json"
-#~ msgstr ""
+#: superset/views/core.py:611
+msgid "Owners is a list of users who can alter the dashboard."
+msgstr ""
-#~ msgid "Export to .csv format"
-#~ msgstr ""
+#: superset/views/core.py:619 superset/views/core.py:686
+msgid "Dashboard"
+msgstr ""
-#~ msgid "Query timer"
-#~ msgstr ""
+#: superset/views/core.py:620 superset/views/core.py:687
+msgid "Title"
+msgstr ""
-#~ msgid "0 sec"
-#~ msgstr ""
+#: superset/views/core.py:621
+msgid "Slug"
+msgstr ""
-#~ msgid "View database query"
-#~ msgstr ""
+#: superset/views/core.py:622
+msgid "Slices"
+msgstr ""
-#~ msgid "query"
-#~ msgstr ""
+#: superset/views/core.py:625 superset/views/core.py:689
+msgid "Modified"
+msgstr ""
-#~ msgid "Filters are defined using comma delimited strings as in 'US,FR,Other'"
-#~ msgstr ""
+#: superset/views/core.py:626
+msgid "Position JSON"
+msgstr ""
-#~ msgid "Add filter"
-#~ msgstr ""
+#: superset/views/core.py:627
+msgid "CSS"
+msgstr ""
-#~ msgid "Close"
-#~ msgstr ""
+#: superset/views/core.py:628
+msgid "JSON Metadata"
+msgstr ""
-#~ msgid "Datasource Description"
-#~ msgstr ""
+#: superset/views/core.py:629
+msgid "Underlying Tables"
+msgstr ""
-#~ msgid "Save a Slice"
-#~ msgstr ""
+#: superset/views/core.py:702
+msgid "Action"
+msgstr ""
-#~ msgid "Save & go to dashboard"
-#~ msgstr ""
+#: superset/views/core.py:703
+msgid "dttm"
+msgstr ""
-#~ msgid "Run!"
-#~ msgstr ""
+#: superset/views/core.py:2454
+msgid "SQL Editor"
+msgstr ""
-#~ msgid "Create View"
-#~ msgstr ""
+#: superset/views/core.py:2463
+msgid "Query Search"
+msgstr ""
#~ msgid "Import"
#~ msgstr ""
diff --git a/superset/translations/it/LC_MESSAGES/messages.po b/superset/translations/it/LC_MESSAGES/messages.po
index ea03d006fa..e93d5ed801 100644
--- a/superset/translations/it/LC_MESSAGES/messages.po
+++ b/superset/translations/it/LC_MESSAGES/messages.po
@@ -451,8 +451,8 @@ msgstr ""
#: superset/connectors/sqla/models.py:388
msgid ""
-"Datetime column not provided as part table configuration and is required "
-"by this type of chart"
+"Defines the origin where time buckets start, accepts natural dates as in "
+"'now', 'sunday' or '1970-01-01'"
msgstr ""
"la colonna Datetime ? necessaria per questo tipo di grafico. Nella "
"configurazione della tabella per? non ? stata definita"
@@ -560,8 +560,8 @@ msgstr "Offset"
#: superset/connectors/sqla/views.py:235
msgid ""
-"The table was created. As part of this two phase configuration process, "
-"you should now click the edit button by the new table to configure it."
+"The time unit for each block. Should be a smaller unit than "
+"domain_granularity. Should be larger or equal to Time Grain"
msgstr ""
"Tabella creata. Come parte di questo processo di configurazione in due "
"fasi, ? necessario andare sul pulsante di modifica della nuova tabella "
@@ -779,10 +779,8 @@ msgstr ""
#: superset/views/core.py:340
msgid ""
-"These parameters are generated dynamically when clicking the save or "
-"overwrite button in the explore view. This JSON object is exposed here "
-"for reference and for power users who may want to alter specific "
-"parameters."
+"Timestamp from filter. This supports free form typing and natural "
+"language as in '1 day ago', '28 days' or '3 years'"
msgstr ""
"Questi parametri sono generati dinamicamente al clic su salva o con il "
"bottone di sovrascrittura nella vista di esplorazione. Questo oggetto "
diff --git a/superset/translations/zh/LC_MESSAGES/messages.po b/superset/translations/zh/LC_MESSAGES/messages.po
index 4c72d20b2f..fcdae36ebb 100644
--- a/superset/translations/zh/LC_MESSAGES/messages.po
+++ b/superset/translations/zh/LC_MESSAGES/messages.po
@@ -1,7 +1,7 @@
# Chinese translations for PROJECT.
-# Copyright (C) 2016 ORGANIZATION
+# Copyright (C) 2017 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
-# FIRST AUTHOR <EM...@ADDRESS>, 2016.
+# FIRST AUTHOR <EM...@ADDRESS>, 2017.
#
msgid ""
msgstr ""
@@ -24,7 +24,1357 @@ msgstr ""
#: superset/db_engine_specs.py:806 superset/db_engine_specs.py:838
#: superset/db_engine_specs.py:884
msgid "Time Column"
-msgstr "????"
+msgstr ""
+
+#: superset/db_engine_specs.py:195 superset/db_engine_specs.py:226
+#: superset/db_engine_specs.py:318 superset/db_engine_specs.py:363
+#: superset/db_engine_specs.py:771 superset/db_engine_specs.py:839
+msgid "second"
+msgstr ""
+
+#: superset/db_engine_specs.py:196 superset/db_engine_specs.py:229
+#: superset/db_engine_specs.py:321 superset/db_engine_specs.py:365
+#: superset/db_engine_specs.py:773 superset/db_engine_specs.py:807
+#: superset/db_engine_specs.py:841 superset/db_engine_specs.py:885
+msgid "minute"
+msgstr ""
+
+#: superset/db_engine_specs.py:197 superset/db_engine_specs.py:233
+#: superset/db_engine_specs.py:323 superset/db_engine_specs.py:367
+#: superset/db_engine_specs.py:779 superset/db_engine_specs.py:809
+#: superset/db_engine_specs.py:843 superset/db_engine_specs.py:891
+#: superset/forms.py:392 superset/forms.py:406
+msgid "hour"
+msgstr ""
+
+#: superset/db_engine_specs.py:198 superset/db_engine_specs.py:238
+#: superset/db_engine_specs.py:270 superset/db_engine_specs.py:325
+#: superset/db_engine_specs.py:369 superset/db_engine_specs.py:781
+#: superset/db_engine_specs.py:811 superset/db_engine_specs.py:845
+#: superset/db_engine_specs.py:893 superset/forms.py:393 superset/forms.py:407
+msgid "day"
+msgstr ""
+
+#: superset/db_engine_specs.py:199 superset/db_engine_specs.py:244
+#: superset/db_engine_specs.py:271 superset/db_engine_specs.py:326
+#: superset/db_engine_specs.py:371 superset/db_engine_specs.py:783
+#: superset/db_engine_specs.py:813 superset/db_engine_specs.py:847
+#: superset/forms.py:376 superset/forms.py:394 superset/forms.py:408
+msgid "week"
+msgstr ""
+
+#: superset/db_engine_specs.py:200 superset/db_engine_specs.py:246
+#: superset/db_engine_specs.py:273 superset/db_engine_specs.py:328
+#: superset/db_engine_specs.py:373 superset/db_engine_specs.py:785
+#: superset/db_engine_specs.py:815 superset/db_engine_specs.py:849
+#: superset/db_engine_specs.py:895 superset/forms.py:379 superset/forms.py:395
+#: superset/forms.py:409
+msgid "month"
+msgstr ""
+
+#: superset/db_engine_specs.py:201 superset/db_engine_specs.py:248
+#: superset/db_engine_specs.py:330 superset/db_engine_specs.py:375
+#: superset/db_engine_specs.py:787 superset/db_engine_specs.py:817
+#: superset/db_engine_specs.py:851 superset/db_engine_specs.py:897
+msgid "quarter"
+msgstr ""
+
+#: superset/db_engine_specs.py:202 superset/db_engine_specs.py:252
+#: superset/db_engine_specs.py:332 superset/db_engine_specs.py:789
+#: superset/db_engine_specs.py:819 superset/db_engine_specs.py:899
+#: superset/forms.py:396
+msgid "year"
+msgstr ""
+
+#: superset/db_engine_specs.py:334
+msgid "week_start_monday"
+msgstr ""
+
+#: superset/db_engine_specs.py:377 superset/db_engine_specs.py:853
+#: superset/forms.py:378
+msgid "week_ending_saturday"
+msgstr ""
+
+#: superset/db_engine_specs.py:380 superset/db_engine_specs.py:856
+msgid "week_start_sunday"
+msgstr ""
+
+#: superset/db_engine_specs.py:775 superset/db_engine_specs.py:887
+msgid "5 minute"
+msgstr ""
+
+#: superset/db_engine_specs.py:777
+msgid "half hour"
+msgstr ""
+
+#: superset/db_engine_specs.py:889
+msgid "10 minute"
+msgstr ""
+
+#: superset/forms.py:37
+msgid "D3 format syntax https://github.com/d3/d3-format"
+msgstr ""
+
+#: superset/forms.py:152
+msgid "Viz"
+msgstr ""
+
+#: superset/forms.py:155
+msgid "The type of visualization to display"
+msgstr ""
+
+#: superset/forms.py:158
+msgid "Metrics"
+msgstr ""
+
+#: superset/forms.py:161 superset/forms.py:166
+msgid "One or many metrics to display"
+msgstr ""
+
+#: superset/forms.py:164
+msgid "Ordering"
+msgstr ""
+
+#: superset/connectors/druid/views.py:94 superset/connectors/sqla/views.py:117
+#: superset/forms.py:169
+msgid "Metric"
+msgstr ""
+
+#: superset/forms.py:172
+msgid "Choose the metric"
+msgstr ""
+
+#: superset/forms.py:175
+msgid "Chart Style"
+msgstr ""
+
+#: superset/forms.py:177
+msgid "stack"
+msgstr ""
+
+#: superset/forms.py:178
+msgid "stream"
+msgstr ""
+
+#: superset/forms.py:179
+msgid "expand"
+msgstr ""
+
+#: superset/forms.py:185
+msgid "Color Scheme"
+msgstr ""
+
+#: superset/forms.py:187
+msgid "fire"
+msgstr ""
+
+#: superset/forms.py:188
+msgid "blue_white_yellow"
+msgstr ""
+
+#: superset/forms.py:189
+msgid "white_black"
+msgstr ""
+
+#: superset/forms.py:190
+msgid "black_white"
+msgstr ""
+
+#: superset/forms.py:196
+msgid "Normalize Across"
+msgstr ""
+
+#: superset/forms.py:198
+msgid "heatmap"
+msgstr ""
+
+#: superset/forms.py:199
+msgid "x"
+msgstr ""
+
+#: superset/forms.py:200
+msgid "y"
+msgstr ""
+
+#: superset/forms.py:203
+msgid ""
+"Color will be rendered based on a ratio of the cell against the sum of "
+"across this criteria"
+msgstr ""
+
+#: superset/forms.py:209
+msgid "Color Scale"
+msgstr ""
+
+#: superset/forms.py:211
+msgid "series"
+msgstr ""
+
+#: superset/forms.py:212
+msgid "overall"
+msgstr ""
+
+#: superset/forms.py:213
+msgid "change"
+msgstr ""
+
+#: superset/forms.py:216
+msgid "Defines how the color are attributed."
+msgstr ""
+
+#: superset/forms.py:219
+msgid "Rendering"
+msgstr ""
+
+#: superset/forms.py:221
+msgid "pixelated (Sharp)"
+msgstr ""
+
+#: superset/forms.py:222
+msgid "auto (Smooth)"
+msgstr ""
+
+#: superset/forms.py:225
+msgid ""
+"image-rendering CSS attribute of the canvas object that defines how the "
+"browser scales up the image"
+msgstr ""
+
+#: superset/forms.py:230
+msgid "XScale Interval"
+msgstr ""
+
+#: superset/forms.py:233
+msgid "Number of step to take between ticks when printing the x scale"
+msgstr ""
+
+#: superset/forms.py:238
+msgid "YScale Interval"
+msgstr ""
+
+#: superset/forms.py:241
+msgid "Number of step to take between ticks when printing the y scale"
+msgstr ""
+
+#: superset/forms.py:246
+msgid "Stacked Bars"
+msgstr ""
+
+#: superset/forms.py:251
+msgid "Show Markers"
+msgstr ""
+
+#: superset/forms.py:258
+msgid "Bar Values"
+msgstr ""
+
+#: superset/forms.py:263
+msgid "Sort Bars"
+msgstr ""
+
+#: superset/forms.py:265
+msgid "Sort bars by x labels."
+msgstr ""
+
+#: superset/forms.py:268
+msgid "Extra Controls"
+msgstr ""
+
+#: superset/forms.py:270
+msgid ""
+"Whether to show extra controls or not. Extra controls include things like"
+" making mulitBar charts stacked or side by side."
+msgstr ""
+
+#: superset/forms.py:276
+msgid "Reduce X ticks"
+msgstr ""
+
+#: superset/forms.py:278
+msgid ""
+"Reduces the number of X axis ticks to be rendered. If true, the x axis "
+"wont overflow and labels may be missing. If false, a minimum width will "
+"be applied to columns and the width may overflow into an horizontal "
+"scroll."
+msgstr ""
+
+#: superset/forms.py:286
+msgid "Include Series"
+msgstr ""
+
+#: superset/forms.py:288
+msgid "Include series name as an axis"
+msgstr ""
+
+#: superset/forms.py:291
+msgid "Color Metric"
+msgstr ""
+
+#: superset/forms.py:294
+msgid "A metric to use for color"
+msgstr ""
+
+#: superset/forms.py:297
+msgid "Country Field Type"
+msgstr ""
+
+#: superset/forms.py:300
+msgid "Full name"
+msgstr ""
+
+#: superset/forms.py:301
+msgid "code International Olympic Committee (cioc)"
+msgstr ""
+
+#: superset/forms.py:302
+msgid "code ISO 3166-1 alpha-2 (cca2)"
+msgstr ""
+
+#: superset/forms.py:303
+msgid "code ISO 3166-1 alpha-3 (cca3)"
+msgstr ""
+
+#: superset/forms.py:305
+msgid ""
+"The country code standard that Superset should expect to find in the "
+"[country] column"
+msgstr ""
+
+#: superset/forms.py:310
+msgid "Group by"
+msgstr ""
+
+#: superset/forms.py:312
+msgid "One or many fields to group by"
+msgstr ""
+
+#: superset/forms.py:315 superset/forms.py:320
+msgid "Columns"
+msgstr ""
+
+#: superset/forms.py:317
+msgid "One or many fields to pivot as columns"
+msgstr ""
+
+#: superset/forms.py:322 superset/forms.py:328 superset/forms.py:334
+msgid "Columns to display"
+msgstr ""
+
+#: superset/forms.py:325
+msgid "X"
+msgstr ""
+
+#: superset/forms.py:331
+msgid "Y"
+msgstr ""
+
+#: superset/forms.py:337
+msgid "Origin"
+msgstr ""
+
+#: superset/forms.py:339
+msgid "default"
+msgstr ""
+
+#: superset/forms.py:340 superset/forms.py:516
+msgid "now"
+msgstr ""
+
+#: superset/forms.py:343
+msgid ""
+"Defines the origin where time buckets start, accepts natural dates as in "
+"'now', 'sunday' or '1970-01-01'"
+msgstr ""
+
+#: superset/forms.py:349
+msgid "Bottom Margin"
+msgstr ""
+
+#: superset/forms.py:352
+msgid "Bottom marging, in pixels, allowing for more room for axis labels"
+msgstr ""
+
+#: superset/forms.py:357
+msgid "Page Length"
+msgstr ""
+
+#: superset/forms.py:360
+msgid "Number of rows per page, 0 means no pagination"
+msgstr ""
+
+#: superset/forms.py:364
+msgid "Time Granularity"
+msgstr ""
+
+#: superset/forms.py:367
+msgid "all"
+msgstr ""
+
+#: superset/forms.py:368
+msgid "5 seconds"
+msgstr ""
+
+#: superset/forms.py:369
+msgid "30 seconds"
+msgstr ""
+
+#: superset/forms.py:370
+msgid "1 minute"
+msgstr ""
+
+#: superset/forms.py:371
+msgid "5 minutes"
+msgstr ""
+
+#: superset/forms.py:372
+msgid "1 hour"
+msgstr ""
+
+#: superset/forms.py:373
+msgid "6 hour"
+msgstr ""
+
+#: superset/forms.py:374
+msgid "1 day"
+msgstr ""
+
+#: superset/forms.py:375
+msgid "7 days"
+msgstr ""
+
+#: superset/forms.py:377
+msgid "week_starting_sunday"
+msgstr ""
+
+#: superset/forms.py:381
+msgid ""
+"The time granularity for the visualization. Note that you can type and "
+"use simple natural language as in '10 seconds', '1 day' or '56 weeks'"
+msgstr ""
+
+#: superset/forms.py:389
+msgid "Domain"
+msgstr ""
+
+#: superset/forms.py:398
+msgid "The time unit used for the grouping of blocks"
+msgstr ""
+
+#: superset/forms.py:402
+msgid "Subdomain"
+msgstr ""
+
+#: superset/forms.py:405 superset/forms.py:765
+msgid "min"
+msgstr ""
+
+#: superset/forms.py:411
+msgid ""
+"The time unit for each block. Should be a smaller unit than "
+"domain_granularity. Should be larger or equal to Time Grain"
+msgstr ""
+
+#: superset/forms.py:418
+msgid "Link Length"
+msgstr ""
+
+#: superset/forms.py:430
+msgid "Link length in the force layout"
+msgstr ""
+
+#: superset/forms.py:433
+msgid "Charge"
+msgstr ""
+
+#: superset/forms.py:447
+msgid "Charge in the force layout"
+msgstr ""
+
+#: superset/forms.py:453
+msgid ""
+"The time column for the visualization. Note that you can define arbitrary"
+" expression that return a DATETIME column in the table editor. Also note "
+"that the filter below is applied against this column or expression"
+msgstr ""
+
+#: superset/forms.py:461
+msgid "Resample Rule"
+msgstr ""
+
+#: superset/forms.py:464
+msgid "1T"
+msgstr ""
+
+#: superset/forms.py:465
+msgid "1H"
+msgstr ""
+
+#: superset/forms.py:466
+msgid "1D"
+msgstr ""
+
+#: superset/forms.py:467
+msgid "7D"
+msgstr ""
+
+#: superset/forms.py:468
+msgid "1M"
+msgstr ""
+
+#: superset/forms.py:469
+msgid "1AS"
+msgstr ""
+
+#: superset/forms.py:471
+msgid "Pandas resample rule"
+msgstr ""
+
+#: superset/forms.py:474
+msgid "Resample How"
+msgstr ""
+
+#: superset/forms.py:478 superset/forms.py:764
+msgid "mean"
+msgstr ""
+
+#: superset/forms.py:479 superset/forms.py:763
+msgid "sum"
+msgstr ""
+
+#: superset/forms.py:480 superset/forms.py:767
+msgid "median"
+msgstr ""
+
+#: superset/forms.py:482
+msgid "Pandas resample how"
+msgstr ""
+
+#: superset/forms.py:485
+msgid "Resample Fill Method"
+msgstr ""
+
+#: superset/forms.py:489
+msgid "ffill"
+msgstr ""
+
+#: superset/forms.py:490
+msgid "bfill"
+msgstr ""
+
+#: superset/forms.py:492
+msgid "Pandas resample fill method"
+msgstr ""
+
+#: superset/forms.py:495
+msgid "Since"
+msgstr ""
+
+#: superset/forms.py:498
+msgid "1 hour ago"
+msgstr ""
+
+#: superset/forms.py:499
+msgid "12 hours ago"
+msgstr ""
+
+#: superset/forms.py:500 superset/forms.py:517
+msgid "1 day ago"
+msgstr ""
+
+#: superset/forms.py:501 superset/forms.py:518
+msgid "7 days ago"
+msgstr ""
+
+#: superset/forms.py:502 superset/forms.py:519
+msgid "28 days ago"
+msgstr ""
+
+#: superset/forms.py:503 superset/forms.py:520
+msgid "90 days ago"
+msgstr ""
+
+#: superset/forms.py:504 superset/forms.py:521
+msgid "1 year ago"
+msgstr ""
+
+#: superset/forms.py:506
+msgid ""
+"Timestamp from filter. This supports free form typing and natural "
+"language as in '1 day ago', '28 days' or '3 years'"
+msgstr ""
+
+#: superset/forms.py:513
+msgid "Until"
+msgstr ""
+
+#: superset/forms.py:525
+msgid "Max Bubble Size"
+msgstr ""
+
+#: superset/forms.py:538
+msgid "Whisker/outlier options"
+msgstr ""
+
+#: superset/forms.py:540
+msgid "Determines how whiskers and outliers are calculated."
+msgstr ""
+
+#: superset/forms.py:543
+msgid "Tukey"
+msgstr ""
+
+#: superset/forms.py:544
+msgid "Min/max (no outliers)"
+msgstr ""
+
+#: superset/forms.py:545
+msgid "2/98 percentiles"
+msgstr ""
+
+#: superset/forms.py:546
+msgid "9/91 percentiles"
+msgstr ""
+
+#: superset/forms.py:550
+msgid "Ratio"
+msgstr ""
+
+#: superset/forms.py:553
+msgid "Target aspect ratio for treemap tiles."
+msgstr ""
+
+#: superset/forms.py:556
+msgid "Number format"
+msgstr ""
+
+#: superset/forms.py:569
+msgid "Row limit"
+msgstr ""
+
+#: superset/forms.py:575
+msgid "Series limit"
+msgstr ""
+
+#: superset/forms.py:578
+msgid "Limits the number of time series that get displayed"
+msgstr ""
+
+#: superset/forms.py:582
+msgid "Sort By"
+msgstr ""
+
+#: superset/forms.py:585
+msgid "Metric used to define the top series"
+msgstr ""
+
+#: superset/forms.py:588
+msgid "Rolling"
+msgstr ""
+
+#: superset/forms.py:592
+msgid ""
+"Defines a rolling window function to apply, works along with the "
+"[Periods] text box"
+msgstr ""
+
+#: superset/forms.py:597
+msgid "Periods"
+msgstr ""
+
+#: superset/forms.py:599
+msgid ""
+"Defines the size of the rolling window function, relative to the time "
+"granularity selected"
+msgstr ""
+
+#: superset/forms.py:604
+msgid "Series"
+msgstr ""
+
+#: superset/forms.py:607
+msgid ""
+"Defines the grouping of entities. Each series is shown as a specific "
+"color on the chart and has a legend toggle"
+msgstr ""
+
+#: superset/forms.py:614
+msgid "Entity"
+msgstr ""
+
+#: superset/forms.py:617
+msgid "This define the element to be plotted on the chart"
+msgstr ""
+
+#: superset/forms.py:621
+msgid "X Axis"
+msgstr ""
+
+#: superset/forms.py:624
+msgid "Metric assigned to the [X] axis"
+msgstr ""
+
+#: superset/forms.py:627
+msgid "Y Axis"
+msgstr ""
+
+#: superset/forms.py:630
+msgid "Metric assigned to the [Y] axis"
+msgstr ""
+
+#: superset/forms.py:633
+msgid "Bubble Size"
+msgstr ""
+
+#: superset/forms.py:638
+msgid "URL"
+msgstr ""
+
+#: superset/forms.py:639
+msgid ""
+"The URL, this field is templated, so you can integrate {{ width }} and/or"
+" {{ height }} in your URL string."
+msgstr ""
+
+#: superset/forms.py:646
+msgid "X Axis Label"
+msgstr ""
+
+#: superset/forms.py:650
+msgid "Y Axis Label"
+msgstr ""
+
+#: superset/forms.py:654
+msgid "Custom WHERE clause"
+msgstr ""
+
+#: superset/forms.py:656
+msgid ""
+"The text in this box gets included in your query's WHERE clause, as an "
+"AND to other criteria. You can include complex expression, parenthesis "
+"and anything else supported by the backend it is directed towards."
+msgstr ""
+
+#: superset/forms.py:663
+msgid "Custom HAVING clause"
+msgstr ""
+
+#: superset/forms.py:665
+msgid ""
+"The text in this box gets included in your query's HAVING clause, as an "
+"AND to other criteria. You can include complex expression, parenthesis "
+"and anything else supported by the backend it is directed towards."
+msgstr ""
+
+#: superset/forms.py:672
+msgid "Comparison Period Lag"
+msgstr ""
+
+#: superset/forms.py:673
+msgid "Based on granularity, number of time periods to compare against"
+msgstr ""
+
+#: superset/forms.py:678
+msgid "Comparison suffix"
+msgstr ""
+
+#: superset/forms.py:679
+msgid "Suffix to apply after the percentage display"
+msgstr ""
+
+#: superset/forms.py:683
+msgid "Table Timestamp Format"
+msgstr ""
+
+#: superset/forms.py:686
+msgid "Timestamp Format"
+msgstr ""
+
+#: superset/forms.py:689
+msgid "Series Height"
+msgstr ""
+
+#: superset/forms.py:692
+msgid "Pixel height of each series"
+msgstr ""
+
+#: superset/forms.py:695
+msgid "X axis format"
+msgstr ""
+
+#: superset/forms.py:701
+msgid "Y axis format"
+msgstr ""
+
+#: superset/forms.py:714
+msgid "Markup Type"
+msgstr ""
+
+#: superset/forms.py:716
+msgid "markdown"
+msgstr ""
+
+#: superset/forms.py:717
+msgid "html"
+msgstr ""
+
+#: superset/forms.py:720
+msgid "Pick your favorite markup language"
+msgstr ""
+
+#: superset/forms.py:723
+msgid "Rotation"
+msgstr ""
+
+#: superset/forms.py:725
+msgid "random"
+msgstr ""
+
+#: superset/forms.py:726
+msgid "flat"
+msgstr ""
+
+#: superset/forms.py:727
+msgid "square"
+msgstr ""
+
+#: superset/forms.py:730
+msgid "Rotation to apply to words in the cloud"
+msgstr ""
+
+#: superset/forms.py:733
+msgid "Line Style"
+msgstr ""
+
+#: superset/forms.py:735
+msgid "linear"
+msgstr ""
+
+#: superset/forms.py:736
+msgid "basis"
+msgstr ""
+
+#: superset/forms.py:737
+msgid "cardinal"
+msgstr ""
+
+#: superset/forms.py:738
+msgid "monotone"
+msgstr ""
+
+#: superset/forms.py:739
+msgid "step-before"
+msgstr ""
+
+#: superset/forms.py:740
+msgid "step-after"
+msgstr ""
+
+#: superset/forms.py:743
+msgid "Line interpolation as defined by d3.js"
+msgstr ""
+
+#: superset/forms.py:746
+msgid "Label Type"
+msgstr ""
+
+#: superset/forms.py:749
+msgid "Category Name"
+msgstr ""
+
+#: superset/forms.py:750
+msgid "Value"
+msgstr ""
+
+#: superset/forms.py:751
+msgid "Percentage"
+msgstr ""
+
+#: superset/forms.py:753
+msgid "What should be shown on the label?"
+msgstr ""
+
+#: superset/forms.py:756
+msgid "Code"
+msgstr ""
+
+#: superset/forms.py:757
+msgid "Put your code here"
+msgstr ""
+
+#: superset/forms.py:761
+msgid "Aggregation function"
+msgstr ""
+
+#: superset/forms.py:766
+msgid "max"
+msgstr ""
+
+#: superset/forms.py:768
+msgid "stdev"
+msgstr ""
+
+#: superset/forms.py:769
+msgid "var"
+msgstr ""
+
+#: superset/forms.py:772
+msgid ""
+"Aggregate function to apply when pivoting and computing the total rows "
+"and columns"
+msgstr ""
+
+#: superset/forms.py:777
+msgid "Font Size From"
+msgstr ""
+
+#: superset/forms.py:779
+msgid "Font size for the smallest value in the list"
+msgstr ""
+
+#: superset/forms.py:783
+msgid "Font Size To"
+msgstr ""
+
+#: superset/forms.py:785
+msgid "Font size for the biggest value in the list"
+msgstr ""
+
+#: superset/forms.py:788
+msgid "Range Filter"
+msgstr ""
+
+#: superset/forms.py:790
+msgid "Whether to display the time range interactive selector"
+msgstr ""
+
+#: superset/forms.py:794
+msgid "Date Filter"
+msgstr ""
+
+#: superset/forms.py:796
+msgid "Whether to include a time filter"
+msgstr ""
+
+#: superset/forms.py:799
+msgid "Data Table"
+msgstr ""
+
+#: superset/forms.py:801
+msgid "Whether to display the interactive data table"
+msgstr ""
+
+#: superset/forms.py:805
+msgid "Search Box"
+msgstr ""
+
+#: superset/forms.py:807
+msgid "Whether to include a client side search box"
+msgstr ""
+
+#: superset/forms.py:811
+msgid "Table Filter"
+msgstr ""
+
+#: superset/forms.py:813
+msgid "Whether to apply filter when table cell is clicked"
+msgstr ""
+
+#: superset/forms.py:817
+msgid "Show Bubbles"
+msgstr ""
+
+#: superset/forms.py:819
+msgid "Whether to display bubbles on top of countries"
+msgstr ""
+
+#: superset/forms.py:823
+msgid "Legend"
+msgstr ""
+
+#: superset/forms.py:825
+msgid "Whether to display the legend (toggles)"
+msgstr ""
+
+#: superset/forms.py:828
+msgid "X bounds"
+msgstr ""
+
+#: superset/forms.py:830
+msgid "Whether to display the min and max values of the X axis"
+msgstr ""
+
+#: superset/forms.py:834
+msgid "Rich Tooltip"
+msgstr ""
+
+#: superset/forms.py:836
+msgid "The rich tooltip shows a list of all series for that point in time"
+msgstr ""
+
+#: superset/forms.py:841
+msgid "Y Axis Zero"
+msgstr ""
+
+#: superset/forms.py:843
+msgid "Force the Y axis to start at 0 instead of the minimum value"
+msgstr ""
+
+#: superset/forms.py:848
+msgid "Y Log"
+msgstr ""
+
+#: superset/forms.py:850
+msgid "Use a log scale for the Y axis"
+msgstr ""
+
+#: superset/forms.py:853
+msgid "X Log"
+msgstr ""
+
+#: superset/forms.py:855
+msgid "Use a log scale for the X axis"
+msgstr ""
+
+#: superset/forms.py:858
+msgid "Donut"
+msgstr ""
+
+#: superset/forms.py:860
+msgid "Do you want a donut or a pie?"
+msgstr ""
+
+#: superset/forms.py:863
+msgid "Put labels outside"
+msgstr ""
+
+#: superset/forms.py:865
+msgid "Put the labels outside the pie?"
+msgstr ""
+
+#: superset/forms.py:868
+msgid "Contribution"
+msgstr ""
+
+#: superset/forms.py:870
+msgid "Compute the contribution to the total"
+msgstr ""
+
+#: superset/forms.py:873
+msgid "Period Ratio"
+msgstr ""
+
+#: superset/forms.py:876
+msgid ""
+"[integer] Number of period to compare against, this is relative to the "
+"granularity selected"
+msgstr ""
+
+#: superset/forms.py:881
+msgid "Period Ratio Type"
+msgstr ""
+
+#: superset/forms.py:884
+msgid "factor"
+msgstr ""
+
+#: superset/forms.py:885
+msgid "growth"
+msgstr ""
+
+#: superset/forms.py:886
+msgid "value"
+msgstr ""
+
+#: superset/forms.py:888
+msgid ""
+"`factor` means (new/previous), `growth` is ((new/previous) - 1), `value` "
+"is (new-previous)"
+msgstr ""
+
+#: superset/forms.py:893
+msgid "Time Shift"
+msgstr ""
+
+#: superset/forms.py:895
+msgid ""
+"Overlay a timeseries from a relative time period. Expects relative time "
+"delta in natural language (example: 24 hours, 7 days, 56 weeks, 365 days"
+msgstr ""
+
+#: superset/forms.py:902
+msgid "Subheader"
+msgstr ""
+
+#: superset/forms.py:903
+msgid "Description text that shows up below your Big Number"
+msgstr ""
+
+#: superset/forms.py:910
+msgid ""
+"'count' is COUNT(*) if a group by is used. Numerical columns will be "
+"aggregated with the aggregator. Non-numerical columns will be used to "
+"label points. Leave empty to get a count of points in each cluster."
+msgstr ""
+
+#: superset/forms.py:929
+msgid "Base layer map style"
+msgstr ""
+
+#: superset/forms.py:932
+msgid "Clustering Radius"
+msgstr ""
+
+#: superset/forms.py:945
+msgid ""
+"The radius (in pixels) the algorithm uses to define a cluster. Choose 0 "
+"to turn off clustering, but beware that a large number of points (>1000) "
+"will cause lag."
+msgstr ""
+
+#: superset/forms.py:952
+msgid "Point Radius"
+msgstr ""
+
+#: superset/forms.py:955
+msgid ""
+"The radius of individual points (ones that are not in a cluster). Either "
+"a numerical column or 'Auto', which scales the point based on the largest"
+" cluster"
+msgstr ""
+
+#: superset/forms.py:963
+msgid "Point Radius Unit"
+msgstr ""
+
+#: superset/forms.py:970
+msgid "The unit of measure for the specified point radius"
+msgstr ""
+
+#: superset/forms.py:974
+msgid "Opacity"
+msgstr ""
+
+#: superset/forms.py:976
+msgid "Opacity of all clusters, points, and labels. Between 0 and 1."
+msgstr ""
+
+#: superset/forms.py:981
+msgid "Zoom"
+msgstr ""
+
+#: superset/forms.py:984
+msgid "Zoom level of the map"
+msgstr ""
+
+#: superset/forms.py:988
+msgid "Default latitude"
+msgstr ""
+
+#: superset/forms.py:990
+msgid "Latitude of default viewport"
+msgstr ""
+
+#: superset/forms.py:994
+msgid "Default longitude"
+msgstr ""
+
+#: superset/forms.py:996
+msgid "Longitude of default viewport"
+msgstr ""
+
+#: superset/forms.py:1000
+msgid "Live render"
+msgstr ""
+
+#: superset/forms.py:1002
+msgid "Points and clusters will update as viewport is being changed"
+msgstr ""
+
+#: superset/forms.py:1007
+msgid "RGB Color"
+msgstr ""
+
+#: superset/forms.py:1017
+msgid "The color for points and clusters in RGB"
+msgstr ""
+
+#: superset/forms.py:1020
+msgid "Ranges"
+msgstr ""
+
+#: superset/forms.py:1022
+msgid "Ranges to highlight with shading"
+msgstr ""
+
+#: superset/forms.py:1025
+msgid "Range labels"
+msgstr ""
+
+#: superset/forms.py:1027
+msgid "Labels for the ranges"
+msgstr ""
+
+#: superset/forms.py:1030
+msgid "Markers"
+msgstr ""
+
+#: superset/forms.py:1032
+msgid "List of values to mark with triangles"
+msgstr ""
+
+#: superset/forms.py:1035
+msgid "Marker labels"
+msgstr ""
+
+#: superset/forms.py:1037
+msgid "Labels for the markers"
+msgstr ""
+
+#: superset/forms.py:1040
+msgid "Marker lines"
+msgstr ""
+
+#: superset/forms.py:1042
+msgid "List of values to mark with lines"
+msgstr ""
+
+#: superset/forms.py:1045
+msgid "Marker line labels"
+msgstr ""
+
+#: superset/forms.py:1047
+msgid "Labels for the marker lines"
+msgstr ""
+
+#: superset/forms.py:1110
+msgid "SQL"
+msgstr ""
+
+#: superset/forms.py:1112
+msgid "This section exposes ways to include snippets of SQL in your query"
+msgstr ""
+
+#: superset/forms.py:1124
+msgid "Time Grain"
+msgstr ""
+
+#: superset/forms.py:1127
+msgid ""
+"The time granularity for the visualization. This applies a date "
+"transformation to alter your time column and defines a new time "
+"granularity.The options here are defined on a per database engine basis "
+"in the Superset source code"
+msgstr ""
+
+#: superset/forms.py:1166 superset/forms.py:1170
+msgid "Filter 1"
+msgstr ""
+
+#: superset/forms.py:1175
+msgid "Super"
+msgstr ""
+
+#: superset/forms.py:1179
+msgid "Time"
+msgstr ""
+
+#: superset/forms.py:1184
+msgid "Time related form attributes"
+msgstr ""
+
+#: superset/forms.py:1191
+msgid "CSV File"
+msgstr ""
+
+#: superset/forms.py:1192
+msgid "Select a CSV file to be uploaded to a database."
+msgstr ""
+
+#: superset/forms.py:1196
+msgid "CSV Files Only!"
+msgstr ""
+
+#: superset/forms.py:1198
+msgid "Delimiter"
+msgstr ""
+
+#: superset/forms.py:1199
+msgid "Delimiter used by CSV file (for whitespace use \\s+)."
+msgstr ""
+
+#: superset/forms.py:1204
+msgid "Header Row"
+msgstr ""
+
+#: superset/forms.py:1205
+msgid ""
+"Row containing the headers to use as column names (0 is first line of "
+"data). Leave empty if there is no header row."
+msgstr ""
+
+#: superset/forms.py:1214
+msgid "Column Names"
+msgstr ""
+
+#: superset/forms.py:1215
+msgid ""
+"List of comma-separated column names to use if header row not specified "
+"above. Leave empty if header field populated."
+msgstr ""
+
+#: superset/forms.py:1224
+msgid "Index Column"
+msgstr ""
+
+#: superset/forms.py:1225
+msgid ""
+"Column to use as the row labels of the dataframe. Leave empty if no index"
+" column."
+msgstr ""
+
+#: superset/forms.py:1233
+msgid "Squeeze"
+msgstr ""
+
+#: superset/forms.py:1234
+msgid ""
+"Parse the data as a series (specify this option if the data contains only"
+" one column.)"
+msgstr ""
+
+#: superset/forms.py:1239
+msgid "Prefix"
+msgstr ""
+
+#: superset/forms.py:1240
+msgid ""
+"Prefix to add to column numbers when no header (e.g. \"X\" for \"X0, "
+"X1\")."
+msgstr ""
+
+#: superset/forms.py:1246
+msgid "Mangle Duplicate Columns"
+msgstr ""
+
+#: superset/forms.py:1247
+msgid "Specify duplicate columns as \"X.0, X.1\"."
+msgstr ""
+
+#: superset/forms.py:1250
+msgid "Skip Initial Space"
+msgstr ""
+
+#: superset/forms.py:1251
+msgid "Skip spaces after delimiter."
+msgstr ""
+
+#: superset/forms.py:1253
+msgid "Skip Rows"
+msgstr ""
+
+#: superset/forms.py:1254
+msgid "Number of rows to skip at start of file."
+msgstr ""
#: superset/db_engine_specs.py:195 superset/db_engine_specs.py:226
#: superset/db_engine_specs.py:318 superset/db_engine_specs.py:363
@@ -113,95 +1463,99 @@ msgstr ""
#: superset/viz.py:311
msgid "Table View"
-msgstr "???"
+msgstr ""
#: superset/viz.py:364
msgid "Pivot Table"
-msgstr "???"
+msgstr ""
#: superset/viz.py:413
msgid "Markup"
-msgstr "??"
+msgstr ""
#: superset/viz.py:432
msgid "Separator"
-msgstr "???"
+msgstr ""
#: superset/viz.py:448
msgid "Word Cloud"
-msgstr "???"
+msgstr ""
#: superset/viz.py:471
msgid "Treemap"
-msgstr "???"
+msgstr ""
#: superset/viz.py:497
msgid "Calendar Heatmap"
-msgstr "?????"
+msgstr ""
#: superset/viz.py:555
msgid "Box Plot"
-msgstr "???"
+msgstr ""
#: superset/viz.py:644
msgid "Bubble Chart"
-msgstr "???"
+msgstr ""
#: superset/viz.py:693
msgid "Bullet Chart"
-msgstr "???"
+msgstr ""
#: superset/viz.py:742
msgid "Big Number with Trendline"
-msgstr "??????"
+msgstr ""
#: superset/viz.py:771
msgid "Big Number"
-msgstr "??"
+msgstr ""
#: superset/viz.py:798
msgid "Time Series - Line Chart"
-msgstr "????-???"
+msgstr ""
#: superset/viz.py:925
msgid "Time Series - Dual Axis Line Chart"
-msgstr "????-????"
+msgstr ""
#: superset/viz.py:1000
msgid "Time Series - Bar Chart"
-msgstr "????-???"
+msgstr ""
#: superset/viz.py:1008
msgid "Time Series - Percent Change"
-msgstr "????-?????"
+msgstr ""
#: superset/viz.py:1016
msgid "Time Series - Stacked"
-msgstr "????-???"
+msgstr ""
#: superset/viz.py:1025
msgid "Distribution - NVD3 - Pie Chart"
-msgstr "??-??"
+msgstr ""
#: superset/viz.py:1043
msgid "Histogram"
-msgstr "???"
+msgstr ""
#: superset/viz.py:1068
msgid "Distribution - Bar Chart"
-msgstr "??-???"
+msgstr ""
#: superset/viz.py:1135
msgid "Sunburst"
-msgstr "?????"
+msgstr ""
#: superset/viz.py:1168
msgid "Sankey"
-msgstr "???"
+msgstr ""
#: superset/viz.py:1217
msgid "Directed Force Layout"
-msgstr "???"
+msgstr ""
+
+#: superset/viz.py:1238
+msgid "Country Map"
+msgstr ""
#: superset/viz.py:1238
msgid "Country Map"
@@ -209,73 +1563,73 @@ msgstr ""
#: superset/viz.py:1267
msgid "World Map"
-msgstr "????"
+msgstr ""
#: superset/viz.py:1317
msgid "Filters"
-msgstr "??"
+msgstr ""
#: superset/viz.py:1352
msgid "iFrame"
-msgstr "????"
+msgstr ""
#: superset/viz.py:1369
msgid "Parallel Coordinates"
-msgstr "????"
+msgstr ""
#: superset/viz.py:1394
msgid "Heatmap"
-msgstr "???"
+msgstr ""
#: superset/viz.py:1445
msgid "Horizon Charts"
-msgstr "???"
+msgstr ""
#: superset/viz.py:1456
msgid "Mapbox"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/models.py:950
msgid "No data was returned."
-msgstr "????"
+msgstr ""
#: superset/connectors/druid/views.py:36 superset/connectors/sqla/views.py:73
msgid "Column"
-msgstr "?"
+msgstr ""
#: superset/connectors/druid/views.py:37 superset/connectors/druid/views.py:96
#: superset/connectors/sqla/views.py:119
msgid "Type"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:38 superset/views/core.py:305
#: superset/views/core.py:354
msgid "Datasource"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:39 superset/connectors/sqla/views.py:76
msgid "Groupable"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:40 superset/connectors/sqla/views.py:77
msgid "Filterable"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:41 superset/connectors/sqla/views.py:79
msgid "Count Distinct"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:42 superset/connectors/sqla/views.py:80
msgid "Sum"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:43 superset/connectors/sqla/views.py:81
msgid "Min"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:44 superset/connectors/sqla/views.py:82
msgid "Max"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:47 superset/connectors/sqla/views.py:42
msgid ""
@@ -298,12 +1652,12 @@ msgstr "??"
#: superset/connectors/sqla/views.py:75 superset/connectors/sqla/views.py:117
#: superset/views/core.py:355
msgid "Description"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:95 superset/connectors/sqla/views.py:74
#: superset/connectors/sqla/views.py:118
msgid "Verbose Name"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:97 superset/views/core.py:534
msgid "JSON"
@@ -311,12 +1665,12 @@ msgstr ""
#: superset/connectors/druid/views.py:98
msgid "Druid Datasource"
-msgstr "Druid???"
+msgstr ""
#: superset/connectors/druid/views.py:123
#: superset/connectors/druid/views.py:203
msgid "Cluster"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:124
msgid "Coordinator Host"
@@ -364,7 +1718,7 @@ msgstr ""
#: superset/connectors/druid/views.py:180 superset/connectors/sqla/views.py:163
msgid "Timezone offset (in hours) for this datasource"
-msgstr "??????(?????)"
+msgstr ""
#: superset/connectors/druid/views.py:184
msgid ""
@@ -393,15 +1747,15 @@ msgstr ""
#: superset/connectors/druid/views.py:202
msgid "Data Source"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:205
msgid "Owner"
-msgstr "???"
+msgstr ""
#: superset/connectors/druid/views.py:206
msgid "Is Hidden"
-msgstr "??"
+msgstr ""
#: superset/connectors/druid/views.py:207 superset/connectors/sqla/views.py:197
msgid "Enable Filter Select"
@@ -413,12 +1767,12 @@ msgstr ""
#: superset/connectors/druid/views.py:209
msgid "Time Offset"
-msgstr "????"
+msgstr ""
#: superset/connectors/druid/views.py:210 superset/connectors/sqla/views.py:203
#: superset/views/core.py:241 superset/views/core.py:351
msgid "Cache Timeout"
-msgstr "????"
+msgstr ""
#: superset/connectors/druid/views.py:241
msgid "Druid Datasources"
@@ -432,7 +1786,7 @@ msgstr "??Druid???"
msgid ""
"Datetime column not provided as part table configuration and is required "
"by this type of chart"
-msgstr "??????"
+msgstr ""
#: superset/connectors/sqla/models.py:393
msgid "Metric '{}' is not valid"
@@ -442,7 +1796,7 @@ msgstr ""
msgid ""
"Whether to make this column available as a [Time Granularity] option, "
"column has to be DATETIME or DATETIME-like"
-msgstr "???????[????]??, ??????????DATETIME"
+msgstr ""
#: superset/connectors/sqla/views.py:45
msgid ""
@@ -454,27 +1808,27 @@ msgstr ""
#: superset/connectors/sqla/views.py:78 superset/connectors/sqla/views.py:121
#: superset/connectors/sqla/views.py:193 superset/views/core.py:361
msgid "Table"
-msgstr "?"
+msgstr ""
#: superset/connectors/sqla/views.py:83
msgid "Expression"
-msgstr "???"
+msgstr ""
#: superset/connectors/sqla/views.py:84
msgid "Is temporal"
-msgstr "????"
+msgstr ""
#: superset/connectors/sqla/views.py:85
msgid "Datetime Format"
-msgstr "????"
+msgstr ""
#: superset/connectors/sqla/views.py:86
msgid "Database Expression"
-msgstr "??????"
+msgstr ""
#: superset/connectors/sqla/views.py:120
msgid "SQL Expression"
-msgstr "SQL???"
+msgstr ""
#: superset/connectors/sqla/views.py:164
msgid "Name of the table that exists in the source database"
@@ -503,11 +1857,11 @@ msgstr ""
#: superset/connectors/sqla/views.py:194
msgid "Changed By"
-msgstr "???"
+msgstr ""
#: superset/connectors/sqla/views.py:195 superset/views/core.py:237
msgid "Database"
-msgstr "???"
+msgstr ""
#: superset/connectors/sqla/views.py:196 superset/views/core.py:239
msgid "Last Changed"
@@ -519,7 +1873,7 @@ msgstr "??"
#: superset/connectors/sqla/views.py:202
msgid "Offset"
-msgstr "??"
+msgstr ""
#: superset/connectors/sqla/views.py:235
msgid ""
@@ -537,11 +1891,11 @@ msgstr "????"
#: superset/templates/appbuilder/navbar_right.html:42
msgid "Logout"
-msgstr "??"
+msgstr ""
#: superset/templates/appbuilder/navbar_right.html:47
msgid "Login"
-msgstr "??"
+msgstr ""
#: superset/templates/superset/import_dashboards.html:11
msgid "Import"
@@ -562,7 +1916,7 @@ msgstr ""
#: superset/templates/superset/request_access.html:16
msgid "Cancel"
-msgstr "??"
+msgstr ""
#: superset/templates/superset/welcome.html:10
msgid "Welcome!"
@@ -575,7 +1929,7 @@ msgstr "??"
#: superset/templates/superset/models/database/macros.html:4
msgid "Test Connection"
-msgstr "????"
+msgstr ""
#: superset/views/base.py:57
#, python-format
@@ -676,7 +2030,7 @@ msgstr ""
#: superset/views/core.py:238 superset/views/core.py:352
#: superset/views/core.py:454 superset/views/core.py:518
msgid "Creator"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:240
msgid "SQLAlchemy URI"
@@ -684,7 +2038,11 @@ msgstr ""
#: superset/views/core.py:242
msgid "Extra"
-msgstr "??"
+msgstr ""
+
+#: superset/views/core.py:308
+msgid "CSV to Database configuration"
+msgstr ""
#: superset/views/core.py:260
msgid "Import Dashboards"
@@ -701,15 +2059,15 @@ msgstr "???"
#: superset/views/core.py:302 superset/views/core.py:531
msgid "User"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:303
msgid "User Roles"
-msgstr "????"
+msgstr ""
#: superset/views/core.py:304
msgid "Database URL"
-msgstr "???URL"
+msgstr ""
#: superset/views/core.py:306
msgid "Roles to grant"
@@ -717,7 +2075,7 @@ msgstr ""
#: superset/views/core.py:307
msgid "Created On"
-msgstr "????"
+msgstr ""
#: superset/views/core.py:313
msgid "Access requests"
@@ -733,35 +2091,35 @@ msgid ""
"overwrite button in the explore view. This JSON object is exposed here "
"for reference and for power users who may want to alter specific "
"parameters."
-msgstr "???????????????????????????????????????????????"
+msgstr ""
#: superset/views/core.py:345
msgid "Duration (in seconds) of the caching timeout for this slice."
-msgstr "????????(?)"
+msgstr ""
#: superset/views/core.py:356
msgid "Last Modified"
-msgstr "????"
+msgstr ""
#: superset/views/core.py:357 superset/views/core.py:453
msgid "Owners"
-msgstr "???"
+msgstr ""
#: superset/views/core.py:358
msgid "Parameters"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:359 superset/views/core.py:401
msgid "Slice"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:360
msgid "Name"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:362
msgid "Visualization Type"
-msgstr "????"
+msgstr ""
#: superset/views/core.py:389 superset/views/core.py:452
msgid "Slices"
@@ -772,36 +2130,36 @@ msgid ""
"This json object describes the positioning of the widgets in the "
"dashboard. It is dynamically generated when adjusting the widgets size "
"and positions by using drag & drop in the dashboard view"
-msgstr "??JSON??????????????????????????????????????????????"
+msgstr ""
#: superset/views/core.py:431
msgid ""
"The css for individual dashboards can be altered here, or in the "
"dashboard view where changes are immediately visible"
-msgstr "???????????????????CSS??"
+msgstr ""
#: superset/views/core.py:435
msgid "To get a readable URL for your dashboard"
-msgstr "??????????URL"
+msgstr ""
#: superset/views/core.py:436
msgid ""
"This JSON object is generated dynamically when clicking the save or "
"overwrite button in the dashboard view. It is exposed here for reference "
"and for power users who may want to alter specific parameters."
-msgstr "?????????????????????????????????????????????????????"
+msgstr ""
#: superset/views/core.py:441
msgid "Owners is a list of users who can alter the dashboard."
-msgstr "???????????????????"
+msgstr ""
#: superset/views/core.py:449 superset/views/core.py:516
msgid "Dashboard"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:450 superset/views/core.py:517
msgid "Title"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:451
msgid "Slug"
@@ -809,11 +2167,11 @@ msgstr ""
#: superset/views/core.py:455 superset/views/core.py:519
msgid "Modified"
-msgstr "???"
+msgstr ""
#: superset/views/core.py:456
msgid "Position JSON"
-msgstr "????"
+msgstr ""
#: superset/views/core.py:457
msgid "CSS"
@@ -821,11 +2179,11 @@ msgstr ""
#: superset/views/core.py:458
msgid "JSON Metadata"
-msgstr "JSON??"
+msgstr ""
#: superset/views/core.py:459
msgid "Underlying Tables"
-msgstr "???"
+msgstr ""
#: superset/views/core.py:482
msgid "Export"
@@ -837,11 +2195,11 @@ msgstr ""
#: superset/views/core.py:532
msgid "Action"
-msgstr "??"
+msgstr ""
#: superset/views/core.py:533
msgid "dttm"
-msgstr "DTTM"
+msgstr ""
#: superset/views/core.py:540
msgid "Action Log"
diff --git a/superset/views/base.py b/superset/views/base.py
index 02aaf8daef..60efce55bb 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -329,6 +329,16 @@ def has_all_datasource_access(self):
self.has_perm('all_datasource_access', 'all_datasource_access'))
+class DatabaseFilter(SupersetFilter):
+ def apply(self, query, func): # noqa
+ if (
+ self.has_role('Admin') or
+ self.has_perm('all_database_access', 'all_database_access')):
+ return query
+ perms = self.get_view_menus('database_access')
+ return query.filter(self.model.perm.in_(perms))
+
+
class DatasourceFilter(SupersetFilter):
def apply(self, query, func): # noqa
if self.has_all_datasource_access():
diff --git a/superset/views/core.py b/superset/views/core.py
index 68e82027d0..faf5b889b0 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -12,13 +12,16 @@
import re
import time
import traceback
-
+import os
+import pandas
+import pdb
import sqlalchemy as sqla
from flask import (
g, request, redirect, flash, Response, render_template, Markup,
- abort, url_for)
-from flask_appbuilder import expose
+ abort, url_for, send_from_directory)
+from flask_appbuilder import (
+ ModelView, CompactCRUDMixin, BaseView, expose, SimpleFormView)
from flask_appbuilder.actions import action
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.security.decorators import has_access_api
@@ -27,8 +30,11 @@
from flask_babel import gettext as __
from flask_babel import lazy_gettext as _
+from wtforms.validators import ValidationError
+
from sqlalchemy import create_engine
from werkzeug.routing import BaseConverter
+from werkzeug.utils import secure_filename
from superset import (
appbuilder, cache, db, viz, utils, app,
@@ -37,9 +43,13 @@
from superset.legacy import cast_form_data
from superset.utils import has_access, QueryStatus
from superset.connectors.connector_registry import ConnectorRegistry
+from superset.connectors.sqla.models import SqlaTable
import superset.models.core as models
from superset.models.sql_lab import Query
from superset.sql_parse import SupersetQuery
+from superset.widgets import CsvListWidget
+from superset.forms import CsvToDatabaseForm
+from superset.views.base import DatabaseFilter
from .base import (
api, SupersetModelView, BaseSupersetView, DeleteMixin,
@@ -199,6 +209,7 @@ class DatabaseView(SupersetModelView, DeleteMixin): # noqa
'changed_by',
'changed_on',
]
+ list_widget = CsvListWidget
add_template = "superset/models/database/add.html"
edit_template = "superset/models/database/edit.html"
base_order = ('changed_on', 'desc')
@@ -285,6 +296,7 @@ def _delete(self, pk):
class DatabaseAsync(DatabaseView):
+ base_filters = [['id', DatabaseFilter, lambda: []]]
list_columns = [
'id', 'database_name',
'expose_in_sqllab', 'allow_ctas', 'force_ctas_schema',
@@ -294,6 +306,195 @@ class DatabaseAsync(DatabaseView):
appbuilder.add_view_no_menu(DatabaseAsync)
+@app.route('/uploads/<filename>')
+def uploaded_file(filename):
+ with open("flask-stream-demo", "bw") as f:
+ chunk_size = 4096
+ while True:
+ chunk = flask.request.stream.read(chunk_size).decode('utf-8')
+ if len(chunk) == 0:
+ return
+ f.write(chunk)
+
+ #return send_from_directory(config['UPLOAD_FOLDER'],
+ # filename)
+
+class CsvToDatabaseView(SimpleFormView):
+ form = CsvToDatabaseForm
+ form_title = _('CSV to Database configuration')
+
+ def form_get(self, form):
+ # pre process form
+ # default values
+ form.name.data = None
+ form.csv_file.data = None
+ form.sep.data = ','
+ form.header.data = 0
+ form.index_col.data = None
+ form.squeeze.data = False
+ form.prefix.data = None
+ form.mangle_dupe_cols.data = True
+ form.skipinitialspace.data = False
+ form.skiprows.data = None
+ form.nrows.data = None
+ form.skip_blank_lines.data = True
+ form.parse_dates.data = True
+ form.infer_datetime_format.data = True
+ form.dayfirst.data = False
+ form.thousands.data = None
+ form.decimal.data = '.'
+ form.quotechar.data = None
+ form.escapechar.data = None
+ form.comment.data = None
+ form.error_bad_lines.data = False
+ form.names.data = None
+ form.con.data = config['SQLALCHEMY_DATABASE_URI']
+ form.schema.data = None
+ form.if_exists.data = 'append'
+ form.index.data = None
+ form.index_label.data = None
+
+ def form_post(self, form):
+ # post process form
+
+ # Turn into list of strings
+ if form.names.data is not None:
+ form.names.data = form.names.data.split(",")
+ else:
+ if form.header.data is None:
+ form.header.data = 0
+
+ # Attempt to upload csv file
+ filename = self.upload_file(form)
+
+ # Use Pandas to convert csv to dataframe
+ datetime_flag = form.infer_datetime_format.data
+ df = self.csv_to_df(names=form.names.data,
+ filepath_or_buffer=filename,
+ sep=form.sep.data,
+ header=form.header.data,
+ index_col=form.index_col.data,
+ squeeze=form.squeeze.data,
+ prefix=form.prefix.data,
+ mangle_dupe_cols=form.mangle_dupe_cols.data,
+ skipinitialspace=form.skipinitialspace.data,
+ skiprows=form.skiprows.data,
+ nrows=form.nrows.data,
+ skip_blank_lines=form.skip_blank_lines.data,
+ parse_dates=form.parse_dates.data,
+ infer_datetime_format=datetime_flag,
+ dayfirst=form.dayfirst.data,
+ thousands=form.thousands.data,
+ decimal=form.decimal.data,
+ quotechar=form.quotechar.data,
+ escapechar=form.escapechar.data,
+ comment=form.comment.data,
+ error_bad_lines=form.error_bad_lines.data,
+ chunksize=10000)
+
+ # Use Pandas to convert superset dataframe to database
+ self.df_to_db(df=df,
+ name=form.name.data,
+ con=form.con.data,
+ schema=form.schema.data,
+ if_exists=form.if_exists.data,
+ index=form.index.data,
+ index_label=form.index_label.data,
+ chunksize=10000)
+
+ # Go back to welcome page / splash screen
+ message = _('CSV file "{0}" uploaded to table "{1}" in '
+ 'database "{2}"'.format(filename,
+ form.name.data,
+ form.con.data))
+ flash(message, 'info')
+ return redirect('/tablemodelview/list/')
+
+ @staticmethod
+ def csv_to_df(names, filepath_or_buffer, sep, header, index_col, squeeze,
+ prefix, mangle_dupe_cols, skipinitialspace, skiprows, nrows,
+ skip_blank_lines, parse_dates, infer_datetime_format,
+ dayfirst, thousands, decimal, quotechar, escapechar, comment,
+ error_bad_lines, chunksize):
+ # Use Pandas to parse csv file to a dataframe
+ upload_path = config['UPLOAD_FOLDER'] + filepath_or_buffer
+ # Expose this to api so can specify each field
+ chunks = pandas.read_csv(filepath_or_buffer=upload_path,
+ sep=sep,
+ header=header,
+ names=names,
+ index_col=index_col,
+ squeeze=squeeze,
+ prefix=prefix,
+ mangle_dupe_cols=mangle_dupe_cols,
+ skipinitialspace=skipinitialspace,
+ skiprows=skiprows,
+ nrows=nrows,
+ skip_blank_lines=skip_blank_lines,
+ parse_dates=parse_dates,
+ infer_datetime_format=infer_datetime_format,
+ dayfirst=dayfirst,
+ thousands=thousands,
+ decimal=decimal,
+ quotechar=quotechar,
+ escapechar=escapechar,
+ comment=comment,
+ encoding='utf-8',
+ error_bad_lines=error_bad_lines,
+ chunksize=chunksize,
+ iterator=True)
+ df = pandas.DataFrame()
+ df = pandas.concat(chunk for chunk in chunks)
+ return df
+
+ @staticmethod
+ def df_to_db(df, name, con, schema, if_exists, index,
+ index_label, chunksize):
+
+ engine = create_engine(con, echo=False)
+
+ # Use Pandas to parse dataframe to database
+ df.to_sql(name=name, con=engine, schema=schema, if_exists=if_exists,
+ index=index, index_label=index_label, chunksize=chunksize)
+
+
+ table = SqlaTable(table_name=name)
+ database = (
+ db.session
+ .query(models.Database)
+ .filter_by(sqlalchemy_uri=con)
+ .first()
+ )
+ table.database_id = database.id
+ table.user_id = g.user.id
+ table.database = database
+ table.schema = schema
+ db.session.add(table)
+ db.session.commit()
+ # Should I set this to g.user? The other tables don't have an owner.
+ # table.owner = g.user.id
+ # Do I need to set table.sql? None of the default tables have it set.
+ # table.sql =
+
+ @staticmethod
+ def allowed_file(filename):
+ # Only allow specific file extensions as specified in the config
+ return '.' in filename and \
+ filename.rsplit('.', 1)[1] in config['ALLOWED_EXTENSIONS']
+
+
+ def upload_file(self, form):
+ if form.csv_file.data and \
+ self.allowed_file(form.csv_file.data.filename):
+ filename = secure_filename(form.csv_file.data.filename)
+ form.csv_file.data.save(os.path.join(config['UPLOAD_FOLDER'],
+ filename))
+ return filename
+
+
+appbuilder.add_view_no_menu(CsvToDatabaseView)
+
+
class DatabaseTablesAsync(DatabaseView):
list_columns = ['id', 'all_table_names', 'all_schema_names']
diff --git a/superset/widgets.py b/superset/widgets.py
new file mode 100644
index 0000000000..2f989a7ba4
--- /dev/null
+++ b/superset/widgets.py
@@ -0,0 +1,5 @@
+from flask_appbuilder.widgets import ListWidget
+
+
+class CsvListWidget(ListWidget):
+ template = 'superset/widgets/list.html'
diff --git a/tests/testCSV.csv b/tests/testCSV.csv
new file mode 100644
index 0000000000..2194e870ad
--- /dev/null
+++ b/tests/testCSV.csv
@@ -0,0 +1,2 @@
+Name,TestField
+Saleh,TestData
\ No newline at end of file
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services