@ -38,12 +38,13 @@ this.value=value;
@@ -38,12 +38,13 @@ this.value=value;
this . isDefault = isDefault ;
}
function dimensionProperty ( name , caption , isMeasure , isMandatory )
function dimensionProperty ( name , caption , explanation , isMeasure , isMandatory )
{
this . name = name ;
this . caption = caption ;
this . isMeasure = isMeasure ;
this . isMandatory = isMandatory ;
this . explanation = explanation ;
this . getValueResultset = function ( ) {
var valueOptions = [ ] ;
var optionCounter = 0 ;
@ -159,14 +160,14 @@ function prepareForm(vizTypeUniquename,vizTypeProperties)
@@ -159,14 +160,14 @@ function prepareForm(vizTypeUniquename,vizTypeProperties)
if ( vizTypeUniquename == vizTypeProperties [ k ] . typeUniquename )
{
var isMeasure = ( vizTypeProperties [ k ] . groupUniquename == "MEASURE" ) ? true : false ;
var myProp = new dimensionProperty ( vizTypeProperties [ k ] . propUniquename , vizTypeProperties [ k ] . caption , isMeasure , vizTypeProperties [ k ] . isMandatory ) ;
var myProp = new dimensionProperty ( vizTypeProperties [ k ] . propUniquename , vizTypeProperties [ k ] . caption , vizTypeProperties [ k ] . explanation , isMeasure , vizTypeProperties [ k ] . isMandatory ) ;
chartProperties . push ( myProp ) ;
propertyCounter ++ ;
}
}
return chartProperties ;
}
/ *
function prepareBarXForm ( )
{
var chartProperties = [ ] ;
@ -218,6 +219,7 @@ function prepareLineForm_alt()
@@ -218,6 +219,7 @@ function prepareLineForm_alt()
return chartProperties ;
}
* /
function fillDataSelectionForm ( formDiv )
{
formDivElem = document . getElementById ( formDiv ) ;
@ -419,6 +421,9 @@ function renderDimensionField(dimensionProperty)
@@ -419,6 +421,9 @@ function renderDimensionField(dimensionProperty)
label . classList . add ( "label" ) ;
label . classList . add ( "is-required" ) ;
label . classList . add ( "is-small" ) ;
label . classList . add ( "has-tooltip-right" ) ;
label . setAttribute ( "data-tooltip" , commonChartProperty . explanation ) ;
const textnode = document . createTextNode ( dimensionProperty . caption ) ;
label . appendChild ( textnode ) ;
labelElem . appendChild ( label ) ;
@ -549,6 +554,9 @@ function renderChartPropertyField(commonChartProperty)
@@ -549,6 +554,9 @@ function renderChartPropertyField(commonChartProperty)
label . classList . add ( "label" ) ;
label . classList . add ( "is-required" ) ;
label . classList . add ( "is-small" ) ;
label . classList . add ( "has-tooltip-right" ) ;
label . setAttribute ( "data-tooltip" , commonChartProperty . explanation ) ;
const textnode = document . createTextNode ( commonChartProperty . caption ) ;
label . appendChild ( textnode ) ;
labelElem . appendChild ( label ) ;
@ -556,7 +564,6 @@ function renderChartPropertyField(commonChartProperty)
@@ -556,7 +564,6 @@ function renderChartPropertyField(commonChartProperty)
//input:
const inputFieldElem = document . createElement ( "div" ) ;
inputFieldElem . classList . add ( "field" ) ;
//inputFieldElem.classList.add("is-active");
const inputParaElem = document . createElement ( "p" ) ;
inputParaElem . classList . add ( "control-new" ) ;
const inputElem = document . createElement ( "div" ) ;
@ -571,7 +578,6 @@ function renderChartPropertyField(commonChartProperty)
@@ -571,7 +578,6 @@ function renderChartPropertyField(commonChartProperty)
const selElem = document . createElement ( "select" ) ;
selElem . name = commonChartProperty . name ;
selElem . id = commonChartProperty . name ;
selElem . title = commonChartProperty . explanation ;
//selElem.style="width:50px";
if ( commonChartProperty . variableName == "" )
{
@ -597,7 +603,6 @@ function renderChartPropertyField(commonChartProperty)
@@ -597,7 +603,6 @@ function renderChartPropertyField(commonChartProperty)
textAreaElem . disabled = "disabled" ;
textAreaElem . readonly = "readonly" ;
}
textAreaElem . title = commonChartProperty . explanation ;
textAreaElem . name = commonChartProperty . name ;
textAreaElem . id = commonChartProperty . name ;
textAreaElem . value = commonChartProperty . defaultValue ;
@ -627,7 +632,6 @@ function renderChartPropertyField(commonChartProperty)
@@ -627,7 +632,6 @@ function renderChartPropertyField(commonChartProperty)
rangeElem . step = 50 ;
* /
rangeElem . title = commonChartProperty . explanation ;
rangeElem . name = commonChartProperty . name ;
rangeElem . id = commonChartProperty . name ;
rangeElem . value = commonChartProperty . defaultValue ;
@ -640,14 +644,17 @@ function renderChartPropertyField(commonChartProperty)
@@ -640,14 +644,17 @@ function renderChartPropertyField(commonChartProperty)
default :
//Einfaches Texteingabefeld:
const inpElem = document . createElement ( "input" ) ;
inpElem . type = ( commonChartProperty . propValueType == "integer" ) ? "NUMBER" : "TEXT" ;
inpElem . type = "TEXT" ;
if ( commonChartProperty . propValueType == "integer" )
inpElem . type = "NUMBER" ;
if ( commonChartProperty . inputType == "COLOR" )
inpElem . type = "color" ;
inpElem . size = 5 ;
if ( commonChartProperty . variableName == "" )
{
inpElem . disabled = "disabled" ;
inpElem . readonly = "readonly" ;
}
inpElem . title = commonChartProperty . explanation ;
inpElem . name = commonChartProperty . name ;
inpElem . id = commonChartProperty . name ;
inpElem . value = commonChartProperty . defaultValue ;
@ -1187,7 +1194,7 @@ function makeDot(chartDivElem,selectionRs) {
@@ -1187,7 +1194,7 @@ function makeDot(chartDivElem,selectionRs) {
x : categoryDim
} ) ;
marksArray [ 1 ] = Plot . ruleY ( [ 0 ] ) ;
marksArray [ 2 ] = Plot . ruleX ( [ 0 ] ) ;
//marksArray[2]=Plot.ruleX([0]);
var options = getChartOptions ( categoryDim , "" , measureDim , marksArray , true ) ;